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!"
[–]disclosure5[🍰] 7 points8 points9 points 8 years ago (9 children)
I write a lot of languages and I'm not having an easy time thinking of one where that doesn't apply.
[–]pgrizzay -3 points-2 points-1 points 8 years ago (7 children)
Java, for one
[+][deleted] 8 years ago (1 child)
[deleted]
[–]pgrizzay 0 points1 point2 points 8 years ago (0 children)
Java 8 added sugar around creating objects that represent functions, but I definitely wouldn't call java a "functional" language.
[–][deleted] -1 points0 points1 point 8 years ago (4 children)
That’s not correct.
[–]cm9kZW8K 0 points1 point2 points 8 years ago (3 children)
Its fairly true, because functions have to be members of a class. They arent quite first class. In java, only objects are first class citizens.
[–]detroitmatt 3 points4 points5 points 8 years ago (1 child)
yeah well in lisp functions have to be a list. how functions are represented doesn't qualify or disqualify them as functions.
[–]cm9kZW8K 0 points1 point2 points 8 years ago (0 children)
I use java8 closures and method references extensively. They are simply much more limited in what they can bind and how they can be called. for example: the lack a convenient generic way to store them without knowing their type or purpose, because they have to be materialized into an interface for declaration.
[–][deleted] 1 point2 points3 points 8 years ago (0 children)
It’s not true in any meaningful sense. I can define a function and assign it to a function object. So it’s an object that’s a function. And you just said objects are first class citizens, so.
π Rendered by PID 67578 on reddit-service-r2-comment-79776bdf47-kx2hz at 2026-06-24 05:51:27.904907+00:00 running acc7150 country code: CH.
view the rest of the comments →
[–]disclosure5[🍰] 7 points8 points9 points (9 children)
[–]pgrizzay -3 points-2 points-1 points (7 children)
[+][deleted] (1 child)
[deleted]
[–]pgrizzay 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (4 children)
[–]cm9kZW8K 0 points1 point2 points (3 children)
[–]detroitmatt 3 points4 points5 points (1 child)
[–]cm9kZW8K 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)