HN2new | past | comments | ask | show | jobs | submitlogin

The list comprehension syntax gets confusing for me to read especially with pattern matching.


Haskell: https://gist.github.com/gigamonkey/6249d85021bc8bf54eb4

Erlang: https://gist.github.com/mattsta/b6749e566f5cfd75762a

List comprehensions make no sense to anybody at first. But after you work with and struggle against them for a few days/weeks, everything will click. You'll be a better developer for understand them more intuitively.


I don't know about that last part. I spent years with Erlang until finally list comprehensions became natural, and I still don't feel like a better programmer!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: