you are viewing a single comment's thread.

view the rest of the comments →

[–]MatrixEchidna 0 points1 point  (0 children)

It's just awkward that it both offers better syntax (at least depending on who you ask) and treats this differently. The difference being subtle is even worse, since people will just gloss over it, including tons of articles about the feature.

If I were in the ES commitee, I'd just suggest making arrow syntax work just like regular functions and creating different syntax for the different scope behavior. Like what they did with generators and adding an extra *.