[erlang-questions] A style question
Attila Rajmund Nohl
Mon Feb 15 14:14:13 CET 2010
2010/2/15, Jayson Vantuyl <kagato@REDACTED>:
> While we're at it, there are tons of dusty corners that people miss.
> There's the occasionally useful but wholly unknown syntax for multiple
> clauses in an anonymous fun:
> F = fun
> (true) -> ok;
> (false) -> failed
This is damn useful for e.g. lists:filter()...
> Or pattern matching using ++. Or matchspecs in general.
I always thought that given their highly cryptic syntax, matchspecs
are not designed for human consumption.
More information about the erlang-questions