[erlang-questions] Why is this expression illegal?

Jeroen Koops koops.j@REDACTED
Fri Jan 18 15:04:21 CET 2019


Hi List!

If this expressions is legal:

case A of foo -> 1; bar -> 2 end bor case A of foo -> 8; bar -> 16 end.


... and this expression is legal:


<< case A of foo -> 1; bar -> 2 end >>.


... then why is this expression illegal:


<< case A of foo -> 1; bar -> 2 end bor case A of foo -> 8; bar -> 16 end
>>.


(shell responds with "* 1: syntax error before: 'bor'")


Thanks,

-- 
Jeroen Koops

M: koops.j@REDACTED
T: +31-6-55590300
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190118/fc22442f/attachment.htm>


More information about the erlang-questions mailing list