[Haskell-cafe] Learning C after Haskell

Jared Updike jupdike at gmail.com
Mon Jun 12 17:48:42 EDT 2006

> Thanks, Minh. So are things like recursion and memory sharing typically out
> the window?

Recursion works in C, but every function call pushes stack, so
recursive depth is limited by RAM (compare to tail call optimization
in many functional programming languages where the stack frame is
reused if code is written iteratively with an accumulator). Most of
the time for performance (and to be idiomatic) in C you will just
write for and while loops and modify state in place. Welcom to C.

reverse ")-:"

More information about the Haskell-Cafe mailing list