How does functional programming work?

Posted by Headcrab on Stack Overflow See other posts from Stack Overflow or by Headcrab
Published on 2010-05-16T16:29:38Z Indexed on 2010/05/16 16:30 UTC
Read the original article Hit count: 256

I'm used to imperative/OO programming (know C, C++, Python, PHP, etc.). I wanted to get into functional programming but there are some things unclear to me.

Take for example the languages F# and Haskell:

  • How do you implement loops? By recursion? Eew.

  • What about conditions?

  • How can you get by without variables?

I mean.. What do we have RAM for.. storing variables, right?

© Stack Overflow or respective owner

Related posts about functional-programming

Related posts about haskell