News for hackers. Stuff that matters.
Re:Greppability is an underrated code metric by NohatCoder on Tuesday September 03, 2024 @08:27AM (#41434288)
But do they make much of a difference? You have always been able to write:

    myArray.sort(function(a,b){return a-b})
People for some reason treat this syntactic sugar like it gives them some new fundamental ability.
Re:Greppability is an underrated code metric by marcosdumay on Tuesday September 03, 2024 @10:44AM (#41435460)
Oh Javascript would be much better if it could only be syntactic sugar...

`function(a,b){return a-b;}` is different from `(a,b) => a - b`

And `function diff(a,b) {return a-b;}` is different from `const diff(a,b) => a - b;`.