try without catch

Nick Linker xlcr@REDACTED
Wed Nov 16 06:01:22 CET 2005


Ulf Wiger (AL/EAB) wrote:

>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.
>
>  

Maybe I didn't understant the idea, but if you intend to add "catch"
later, why don't write

case Expr of
    Result -> Action
end.

Best regards,
Linker Nick





More information about the erlang-questions mailing list