Impressions of Haskell
by
, 10-18-2009 at 11:37 AM (1394 Views)
I decided a few days ago to take a serious look at Haskell, and started yesterday. I cracked open a tutorial at http://learnyouahaskell.com/ and started playing with GHCi.
Haskell can bend your mind. It appears to be based on the model of Turing Machines called Recursive Functions. There are no variables, only n-ary functions. A nullary function is a constant. Other functions produce output in a deterministic manner.
The only non-deterministic functions are the user interfaces. The key thing is you have NO variables. You have no ability to store data between function calls. This makes things like a standard rand() function almost impossible. A function's output depends ONLY on its parameters. There is no outside interference.
I like it, but it's bizarre. It's based on several things: lists, set-builder notation, tuples. It does not support OOP, but does have type abstraction that provides similar behaviors.
If you want to scramble your brains, Haskell is a good way to do it![]()










