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

Isn't that more an example of `multiple dispatch` rather than `pattern matching`?


Both :) You can pattern match in function head (definition)

http://elixir-lang.org/getting-started/pattern-matching.html


In Elixir land it's been taught to me as pattern matching. I have never heard of `multiple dispatch`.




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

Search: