3 ms·
Javascript isn't functional like Clojure or Haskell ("no side effects"). But it certainly is similar to common LISP regarding frequent use of higher order funct
by ajuc 13y ago
Javascript isn't functional like Clojure or Haskell ("no side effects"). But it certainly is similar to common LISP regarding frequent use of higher order functions and closures. Some people call that "functional".
Language is more than syntax and set of features. How most people use it is very important, because you will have to interface with others people code, and your code will be interfaced with.
Javascript discourages OO programming because of pathological object creation syntax and unusual inheritance model. In javascript APIs you usually pass literals of a few common types and functions. In C# you pass instances of custom classes. The former is more suited for functional programming than the latter. In javascript you use closures for encapsulation, in C# you use private members.
I don't think I've ever seen "XManager" class in javascript :)