Re:Why Why Functional Programming Matters Matters
by dsc on Tuesday March 01, 2011 @05:43PM
(#2277566)
What about the stack? With all these function calls, it's nightmarish to optimize.
[ Parent
| on HN ]
Re:Why Why Functional Programming Matters Matters
by merijnv on Tuesday March 01, 2011 @06:29PM
(#2277742)
(I think) you're starting with the flawed assumption of what "the" stack is, while functional languages like Haskell have a stack, it is very different from the stack as you may now it in C, so the optimization issues are different too. The assembly of functional calls in functional languages can be a lot more lightweight then in for example C.