• python@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    6 days ago

    you jest, but using the actual function keyword had to be made a point in my team’s code style ruleset because people kept using the
    const somethingFunction = ( input ) => { return input*2; };
    syntax everywhere. (as opposed to:
    function somethingFunction ( input ) { return input*2; })

    • CXORA@aussie.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 days ago

      Thats interesting, assuming this is JS, we went the other way and prefer arrow functions.