[erlang-questions] View patterns

Claes Wikstrom klacke@REDACTED
Thu Aug 23 23:53:40 CEST 2007

> One of the things which is about to be added to GHC is view patterns.
> The idea is that if E is an expression and P is a pattern, then
> 	(E -> P)
> is a pattern.  This pattern matches a value V if and only if
> P = (E)(V).

what a thoroughly disgusting idea - it makes the LOC count shrink
at the expense of unreadability.


More information about the erlang-questions mailing list