[erlang-questions] style question - best way to test multiple non-guard conditions sequentially
Anthony Ramine
n.oxyde@REDACTED
Tue Jul 9 12:00:10 CEST 2013
Which Erlang clause matches here?
--
Anthony Ramine
Le 9 juil. 2013 à 00:12, Richard A. O'Keefe a écrit :
> this should *BE*
>
> case foobar
> of true -> {ok,1}
> ; false -> case true of true -> {ok,2} end
> end
>
> and no error message is appropriate here because there
> *is* a clause that will match and be selected.
More information about the erlang-questions
mailing list