4 ms·
> If FP isn't good for writing a compiler, what is it good for? Summing the Fibonacci sequence I guess.
by btreecat 2y ago
> If FP isn't good for writing a compiler, what is it good for?
Summing the Fibonacci sequence I guess.
- agumonkey 2y agoother FP languages bootstrapped onto themselves IIRC
- incrudible 2y agoFP is bad for computing the Fibonacci series unless you have the compiler optimization to turn it into a loop (as seen in imperative languages). To be fair, most practical FP languages have that, but I never saw the appeal for a strictly functional general purpose language. The situations where I wished one could not use imperative constructs are very domain specific.