2 ms·
It really isn't. Just see Racket, Clojure, Elixir, and F# for practical functional programming languages. This article is pretty terrible. There isn't even a f
by bmitc 5y ago
It really isn't. Just see Racket, Clojure, Elixir, and F# for practical functional programming languages.
This article is pretty terrible. There isn't even a functional implementation, with just a half hearted attempt to even understand how to do it.
Functional languages excel at state machines. The example is pretty terrible too with regards to imperative programming being a good fit, because literally no one enjoys the real life statefulness and mutation when cooking. If you mess up, there's no going back. Why would you want to embrace or repeat that feature in your implementation? Functional state machines just pass explicit state around instead of mutating some random collection of variables.
And god, those C++ examples make me nauseous.
- TuringTest 5y agoConcur about the C++ examples, but that's not just on the language. The author seems to be averse to whitespace to separate one chunk of code from the next.