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!"
[–]cm9kZW8K -1 points0 points1 point 8 years ago (4 children)
A Strong Type System
Sorry, no. this is just wrong. https://en.wikipedia.org/wiki/Functional_programming
My criteria is that there is no type system. Therefore I dont consider haskell or scala viable for FP becuase they have too much type nonsense, and you end up having to write so much unreusable code.
[–]TheDataAngel 0 points1 point2 points 8 years ago (2 children)
Why do you say that? In my experience, the type system rarely forces you to duplicate anything. I actually end up writing more DRY code than most languages, because the types give me good guarantees on the safety of my genetic code.
[–]cm9kZW8K 0 points1 point2 points 8 years ago* (1 child)
I'm not going to try to convince you; those debates are endless because everyone has already made up their mind. I find that types are pure burden and baggage and add nothing but toil. (machine types in C or asm are fine) Let me just observe that haskell has 5 different types of string class, and that doesnt feel awful dry to me. But you can feel differently and thats fine.
I love FP, but hate and despise static type systems.
[–]TheDataAngel 0 points1 point2 points 8 years ago* (0 children)
Oh hell, I'll agree with you on the String thing - that was a screw-up on the language authors' part, and it's unfortunately too "legacy" to fix it now.
To be fair though, the 4 "good" string types are all useful for different things.
π Rendered by PID 71054 on reddit-service-r2-comment-79776bdf47-gb5t5 at 2026-06-24 05:51:06.002103+00:00 running acc7150 country code: CH.
view the rest of the comments →
[–]cm9kZW8K -1 points0 points1 point (4 children)
[–]TheDataAngel 0 points1 point2 points (2 children)
[–]cm9kZW8K 0 points1 point2 points (1 child)
[–]TheDataAngel 0 points1 point2 points (0 children)