[erlang-questions] Package Support/Use

Bob Ippolito bob@REDACTED
Mon Nov 6 09:36:39 CET 2006

On 11/6/06, Mats Cronqvist <mats.cronqvist@REDACTED> wrote:
> Richard A. O'Keefe wrote:
> > Dominic Williams <xpdoka@REDACTED> wrote:
> >       - returning tagged values vs. throwing
> >
> > I thought we did have advice about that?  I can't remember where
> > I saw it, but it was along the lines of "don't use exceptions
> > except for things that are really exceptional".  In other languages,
> > for example, coming to the end of a file is NOT exceptional; most
> > "files" HAVE an end.  So a language shouldn't indicate reaching the end
> > of a file (for the first time, at least) by raising an exception.
>    i hope you misremember, cause returning tagged tuples is truly abominable.
> only a closet C programmer would use that idiom.

I recall reading something along those lines, but I don't remember
where exactly.

It's clear that much of the standard library prefers to return tagged
tuples instead of using exceptions.


More information about the erlang-questions mailing list