3 ms·
> What definition of functional programming does JS meet that you can't apply to nearly every language? Since functional programming is a programming paradigm,
by paulddraper 10y ago
> What definition of functional programming does JS meet that you can't apply to nearly every language?
Since functional programming is a programming paradigm, not a language, don't be surprised if many languages support it, just as many diverse languages support OO.
The language support generally thought necessary is first-class functions (and consequently concepts like higher-order functions). For example, Java < 8 and C# < 2.0 aren't usually considered functional.
If you think allowed mutability makes or breaks a functional language, then neither Clojure nor Clojurescript fit the definition.