Re:JavaScript for Microcontrollers
by frankenst1 on Tuesday November 24, 2020 @06:28AM
(#25197495)
I would argue that extending "improved syntax" beyond readability to carry "addition of new features" blurs the lines between syntax and semantics.
The point was that modern JS is more convenient to use: Const/let, arrows, classes, proxies, async/await, generators, destructuring, default/rest/spread parameters, etc.
Even if you discard const/let/arrows as merely syntactic improvements (which they are not), you should not ignore the others - unless of course they are all syntactic improvements with added features at which point "syntax" lost its "meaning".
I will concede that I failed to write a function definition, thanks for catching that. I guess I unintentionally refactored the outer function away because development brain took over? Sloppy on my part, regardless.