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

> without exhaustiveness what you really have is destructuring- erlang is a fine example

That's completely nonsensical. Erlang does not have exhaustiveness yet is not limited to destructuring.

In fact, mere destructuring is probably the least common of pattern matching's uses in Erlang, much more common are asserting, filtering and dispatching (all of which may make further use of destructuring internally but destructuring is a sub-component of the match rather than the pricipal).




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

Search: