Declaration vs. expression style
Revision as of 12:42, 3 July 2007 by Lemming (taken table from "History of Haskell")
There are two main styles of writing functional programs, which are both supported by Haskell mainly because several language designers preferred these different styles.
There are characteristic elements of both styles.
|Function arguments on left hand side:||
||Lambda abstraction:|| |
|Pattern matching in function definitions:||
|Guards on function definitions:||