The happy programmer studies 7 languages in 7 weeks

I am commited to another study group: SICP

Erlang Day Two

Alberto Peña Abril • Wednesday 13 July 2011

What a great second day! I am starting to love functional programming :) Also, I really like the Prolog in Erlang, it seems like a really fun language.

I think that the most important thing we learned today is this crazy thing called list comprehension. At first, I found it syntax weird and ugly, but once I started using it (there is an exercise later that uses it) I changed my mind. It is really beautiful! (and powerful).

There is one thing in Erlang that I have not got use to yet, though. It is not easy to start every variable name with an uppercase letter :P

Let’s have a look at today exercises so you can also appreciate Erlang beauty:

And that’s all for today. As always, you can check out my examples in my github repository for 7 languages in 7 weeks. See you tomorrow!

Comments

blog comments powered by Disqus