Re:The Invention of the Function Keyword
by compressedgas on Thursday January 26, 2023 @08:41AM
(#34531469)
> Now why do people use const lambdas when there is a perfectly fine function keyword?
Because the hoisting of functions introduces mutable variables. The rule for variables is that everything should be const unless it is meant to be reassigned and then you use let.
Because the hoisting of functions introduces mutable variables. The rule for variables is that everything should be const unless it is meant to be reassigned and then you use let.
I thought I'd air my grievances to the world.