News for hackers. Stuff that matters.
Re:PHP 7.4 by hombre_fatal on Thursday November 28, 2019 @02:23PM (#21659594)
Also, if you default to `() => ...` for anonymous functions, then you can reserve anonymous `function() { ... }` for the rare times you actually want peculiar `this`. Same reason it's nice to default to `const` so that `let` becomes a signal for the bonus feature of reassignment.
Re:PHP 7.4 by johnchristopher on Monday December 02, 2019 @02:58AM (#21680669)
> Same reason it's nice to default to `const` so that `let` becomes a signal for the bonus feature of reassignment.

Code documentation should be clear and concise, not to be deciphered through the code author's take on the meta meaning of reserved words.

Re:PHP 7.4 by earthboundkid on Friday November 29, 2019 @10:29PM (#21668341)
No, const inside of a function is a complete waste of time. There has never been a bug that would be prevented by const inside a function.