4 ms·
Hooks definitely meet the dictionary definition of the term “functional programming”. Like Wikipedia states, you’re conflating “functional programming” with “p
by yazaddaruvala 6y ago
Hooks definitely meet the dictionary definition of the term “functional programming”.
Like Wikipedia states, you’re conflating “functional programming” with “pure functional programming”.
https://en.m.wikipedia.org/wiki/Functional_programming https://en.m.wikipedia.org/wiki/Functional_programming
- mplanchard 6y agoThanks for the clarification! The Wikipedia says they’re often used synonymously, and I’m definitely guilty of conflating the two
- flowerlad 6y agoSo is C language a functional programming language? Definition of functional (from Wikipedia page you linked to): In functional programming, functions are treated as first-class citizens, meaning that they can be bound to names (including local identifiers), passed as arguments, and returned from other functions, just as any other data type can. In C language you can do all that. But C is not a functional programming language at all. Neither is Hooks functional. Even assembly language has "functions" but it is not a "functional language".
- Summershard 6y agoC is a FP language. So are C++, C#, Java and JavaScript. They're not functional first like F# or Scala. A programming language can embrace multiple paradigms.
- flowerlad 6y ago> C is a FP language. Well then so is assembly language.