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

Pattern matching makes up for the lack of static typing to me. It provides nearly all the same benefits especially when used with guard clauses.


You can also peek inside objects and check for types and values of nested properties. In other languages you’d need to create composite types or even duplicate or extend types. In Elixir, all that is for free. I see that as much more powerful than types.




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

Search: