[erlang-questions] Package Support/Use
Mats Cronqvist
mats.cronqvist@REDACTED
Mon Nov 6 09:05:21 CET 2006
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.
mats
More information about the erlang-questions
mailing list