C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals, Chapter 2 of 13
Download this episode
In Chapter 2, Dr. Meijer introduces Haskell syntax and notation (via a Haskell implementation called Hugs, to be precise, which is based on Haskell 98) and we learn about the Haskell syntax that represents the fundamental construct of functional programming:
functions. It's not like you're used to in mathematics like f(x). Instead, in Haskell, a function is denoted without parentheses:
f x. So, given the almost OCD requirement by Haskell language designers to eliminate
any unnecessary clutter in the language, parentheses are replaced by space. Also, in mathematics, you're accustomed to multiplication expressed either as xy or x y. In Haskell, since space denotes a function, multiplication is denoted with a *, like
You should watch these in sequence (or skip around depending on your curent level of knowledge in this domain):
Available formats for this video:
Actual format may change based on video formats available and browser capability.
Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.