[erlang-questions] Old school exceptions vs. new age one

Bjorn Gustavsson bjorn@REDACTED
Tue Apr 29 09:02:19 CEST 2008


Thomas Lindgren <thomasl_erlang@REDACTED> writes:

> I have to note that I nearly always use 'catch' rather
> than 'try', and even consider 'catch' taking care of
> all cases in a great big mess the usually desired
> behaviour. But since I so clearly Don't Get It, I'm
> wondering: what properties of 'try' do people consider
> great _in practice_? What has saved your bacon in
> switching from old to new school?

For me, the ability to catch some sorts of exceptions
and ignore others. Especially if I want to catch throws,
but want any errors to terminate the process.

/Bjorn
-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list