Hacker News new | past | comments | ask | show | jobs | submit login

Yep, Erlang's use of = operator's pattern matching / assignment allows for some very elegant solutions, in addition to function guards, deconstruction, and other use-cases.

It basically uses pattern matching as a fundamental/primitive part of the language design, rather than some useful add-on or tertiary feature.




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

Search: