News for hackers. Stuff that matters.
Re:Greppability is an underrated code metric by 0xfffafaCrash on Tuesday September 03, 2024 @03:09AM (#41432134)
Moreover the binding and lexical scope aspects supported by classic functions are amongst the worst aspects of the language.

Arrow functions are also far more concise and ergonomic when working with higher order functions or simple expressions

The main thing to be wary of with arrow functions is when they are used anonymously inline without it being clear what the function is doing at a glance. That and Error stack traces but the latter is exacerbated by there being no actual standard regarding Error.prototype.stack

There are no comments on this comment yet.