Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C34A153ymaybe this is acknowledged more in JavaScript centered communities? I've never heard people talk about functional programming in js, but I am still relatively new to the language.
-
p100sch14463yThey squeezed OOP in and that is why the functional language part is forgotten by most. OOP is also the shitty part of JS and the reason most hate it.
-
hjk10156963yWell it's been touted loud and clear for a long time and I'm not in the JS world. Closures for example where popularizef back when we still had Yahoo. As for OOP it's classes and stuff is all very recent. The prototype and function first approach have been there for ages of course the procedural and state too but OOP was not obvious to me.
-
Well I mean the language works right. Don't most languages fit that definition of working, ie functional?
-
john-doe9363yIt is a lisp without the parenthesis. It's been a functional language since it's inception
-
Yeah it's really not a functional language at all..
Sum types, immutability, match statements, control flow as expressions? But it got closures though -
10Dev28533yIt does have support for some functional paradigms, like callbacks, closures, and higher-order functions, but the lack of strong typing, pattern matching, and other functional mainstays means it isn’t exactly a functional programming language. Try rescript for actual JavaScript functional programming
-
Just because it has functions as the main building blocks, doesn’t make it a functional language.
It’s not even a proper language. It’s just a script language. But no one remembers that anymore. -
@vintprox
To quote some weirr xkcd-like comic:
"JS is like a one man band; It does everything, but that doesnt mean it should." -
john-doe9363y@LLAMS oh, don't be rude to JS, she is listening. No parens, no macros, eval/apply. I get it it is not a fully grown lisp, but the rest is there, even the continuation passing style is there. And that's a big thing.
JavaScript is a functional language.
It's probably closer to ocaml than it is to java. Why the fuck does no one talk about this? I would have learned it sooner.
rant