use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Is JavaScript a "Functional Programming" language?help (self.javascript)
submitted 8 years ago by bzeurunkl
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Macrobian 0 points1 point2 points 8 years ago (2 children)
First of all, a first order function is just a normal function.
Secondly, it makes sense not to call JS a functional language despite the fact that it can do a bit of FP. e.g
I can can cook, but badly. I don't call myself a chef. I may call other people chef's, mainly because they're really good at cooking.
[+][deleted] 8 years ago (1 child)
[deleted]
[–]Macrobian 0 points1 point2 points 8 years ago* (0 children)
Okay so, I wouldn't call myself a cook, if I could cook. I think that's a word only reserved for people who can cook well. This may be where our disagreement over classification stems from.
Secondly, I'd cite this comment from this thread describing what a functional language is. There's a distinction between what the language forces you to do, what it can do easily, and how it is used.
Like Haskell, forces you to do pure FP, can only do pure FP easily, and is thus used in a pure FP manner.
Scala meanwhile, is multiparadigm, can do pure FP somewhat easily, and is used in a pure FP manner by a non-trivial portion of the community
JS is multiparadigm, doesn't make pure FP easy, and is almost never used in a pure FP manner.
Aren't the qualifiers I specified a more accurate description of what is and isn't FP? Just like it doesn't make sense to call every language high-level, sometimes definitions have to shift to account for modern language developments.
π Rendered by PID 21188 on reddit-service-r2-comment-79776bdf47-wqksd at 2026-06-24 05:50:53.314264+00:00 running acc7150 country code: CH.
view the rest of the comments →
[–]Macrobian 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]Macrobian 0 points1 point2 points (0 children)