3 ms·
Well, some people write very functional javascript. I've thought of a better definition that circumvents the issue of what constitutes emphasis. Functional lan
by DanWaterworth 11y ago
Well, some people write very functional javascript. I've thought of a better definition that circumvents the issue of what constitutes emphasis.
Functional languages are languages used predominantly by functional programmers.
Being functional probably has more to do with how a language is used than the set of features it boasts.
- tel 11y agoThat is precisely my favorite definition :)
- AnimalMuppet 11y agoI don't quite agree. Languages push you in different directions. Haskell pushes you toward FP; you can fight the language and "do" (pun intended) imperative programming, but it's going to be painful. Can you do FP in any language? Maybe not COBOL, but you could do it in C with function pointers. But it's still easier to do it in Haskell than in C, and it's still easier to do imperative programming in C than in Haskell. So you have a point. But languages have different characteristics, too, and those differences let us classify languages, if not as "FP" and "non-FP", at least as "more FP" and "less FP".
- DanWaterworth 11y agoI'm not saying that every language is the same. I'm saying it's very difficult to define styles of programming, but if you have a particular style (in this case functional), you will gravitate towards languages that facilitate that style. At the boundary, where a language doesn't have a particular leaning, the style that you will adhere to is going to be influenced much more by the community around the language than its features.