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

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 | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: