[erlang-questions] Erlang 3000?

Robert Virding rvirding@REDACTED
Mon Nov 17 01:36:38 CET 2008


2008/11/17 damien morton <dmorton@REDACTED>

>
> So here's a question: Are there any examples of "if" statements that would
> be awkward or difficult to express using a "case" statement?
>

There is never a case when it would difficult to use case, just some cases
where it be awkward or look really strange:

case true of
    true when X > 39 -> ...;
    true -> ...
end

instead of

if X > 39 -> ...;
   true -> ...
end

Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081117/a81b12d1/attachment.htm>


More information about the erlang-questions mailing list