3 ms·
Th author asks a general question, using JS code as an example of imperative code because it's faster to write and the syntax is familiar to many programmers.
by dmitriid 9y ago
Th author asks a general question, using JS code as an example of imperative code because it's faster to write and the syntax is familiar to many programmers.
The second top comment starts with:
> JavaScript is a mess with its truthiness, implicit conversions, dubious semicolon insertion, second class references, automatic variable declarations, weird scoping, etc.. You'd need to try harder to make the Haskell imperative monad just as bad as JavaScript.
That is not the point, is it?
Thankfully most other comments discuss the actual question asked, not the pet peeves aimed at a particular language.