TIL everything in Lisp is a function
I’m current reading Structure and Interpretation of Computer Programs as part of a study group we started during Pablo’s Fiesta. Our goal is learn Haskell by reading this book and implementing all of the exercises in Haskell instead of Lisp. So far its been really fun and it’s actually forcing me to learn both Haskell and Lisp at the same time.
I find Lisp to be a fascinating language and it actually makes a lot more sense to me than Haskell does. Going through the exercises we came across this really interesting piece of code.
Ok so what’s going on here?
- if b > 0
- return +
- return –
Arguably not as cool as the Lisp example but it helped me understand it better.
OMG whats the point