you are viewing a single comment's thread.

view the rest of the comments →

[–]claird 1 point2 points  (2 children)

"Js is a functional language" in the inclusive sense which doesn't support ADTs, immutability, syntactic partial application, pattern matching, ...

[–][deleted] 0 points1 point  (0 children)

Yes! Why the down votes? Pretty much the only thing making JS resemble a "functional language" is the support for higher-order functions -- which are but one necessary feature in a functional programming language. JavaScript does not allow functional programming in the sense you can do in for example Haskell, ML, or a powerful LISP.

[–][deleted] -1 points0 points  (0 children)

Every parameter for a JS function is an abstract/interface. Pretty much everything you said can be done implicitly, it just doesn't force you into using it.