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:
People for some reason treat this syntactic sugar like it gives them some new fundamental ability.
[ Parent
| on HN ]
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;`.