try without catch

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
Tue Nov 15 14:01:53 CET 2005


I wrote the following in a program of mine:

try Expr of
   Result -> Action
end.

i.e. no catch. The idea was to add a catch later,
when I had thought of something clever to do.

The compiler didn't have a problem with that
(nor does the erlang reference manual),
but edoc (edoc-0.6.2 in R10B) did. It treated it 
as a syntax error.

/Uffe



More information about the erlang-questions mailing list