[erlang-questions] erlang *****
Matthew Dempsky
matthew@REDACTED
Mon Mar 17 05:59:31 CET 2008
On 3/14/08, Andras Georgy Bekes <bekesa@REDACTED> wrote:
> I think there is no '\/' operator in Erlang, so
> Pattern1 \/ Pattern2 could mean Pattern1 UNION Pattern2
The "or" and "+" operators have no valid semantics in patterns. I
think either of those would be much more aesthetically pleasing than
"\/" for this hypothetical pattern-union operator. E.g.,
case X of
a or b -> f();
c or d -> g()
end.
More information about the erlang-questions
mailing list