Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's a feature in Erlang - this is a reasonably brief explanation:

http://learnyousomeerlang.com/syntax-in-functions

You can think of it as a smart way of doing a switch statement that takes the number and type of arguments in to account - though that's a huge simplification.



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

Search: