Re:All Programming Philosophies Are About State
by bradrn on Tuesday February 07, 2023 @12:53AM
(#34689243)
I feel I should point out that that ‘functional’ quote is (a) only applicable to pure, strongly-typed functional languages, and (b) pretty much irrelevant unless you happen to be interested in category theory.
[ Parent
| on HN ]
Re:All Programming Philosophies Are About State
by fulafel on Tuesday February 07, 2023 @01:42AM
(#34689536)
Yep, the FP scene is split into the pragmatic and the academic sides.
I think it is not precisely delineated along the static vs dynamic sides: In addition to Elixir/Erlang, and Clojure we have eg F# and Elm from the static side in the pragmatic team.
Re:All Programming Philosophies Are About State
by bradrn on Tuesday February 07, 2023 @03:03AM
(#34690025)
I think the distinction you’re trying to make is that of ‘impure’ vs ‘pure’; ‘pragmatic’ vs ‘academic’ strikes me as a rather loaded choice of terminology, especially since languages like Haskell are rather widely used practically.
Re:All Programming Philosophies Are About State
by tasuki on Tuesday February 07, 2023 @06:08AM
(#34691260)
I don't think that's the distinction fulafel tried to make.
Elm is very much pure, yet it's on the pragmatic side: it forgoes certain powerful abstractions (higher kinded polymorphism, type classes), which enables the compiler to give very helpful error messages, and makes the language easier to learn.
Re:All Programming Philosophies Are About State
by bradrn on Tuesday February 07, 2023 @07:07AM
(#34691647)
> Elm is very much pure
Huh… you’re quite right. I always thought it was impure. In that case I retract my previous comment (pity I can’t edit it any more!).
Re:All Programming Philosophies Are About State
by epwr on Tuesday February 07, 2023 @01:25AM
(#34689454)
You might want to look a bit more closely before you write functional programming off like this.
Eg. Clojure is a modern functional language that is used for a lot of things & happens to be dynamic.