[erlang-questions] Any wisdom to offer on "tagged return values"
Mon May 4 19:53:04 CEST 2009
Tony Arcieri <tony@REDACTED> writes:
> On Sat, May 2, 2009 at 3:50 PM, mats cronqvist <masse@REDACTED> wrote:
> My theory is that the people who wrote this "programming rule" were
> (good) C programmers, and thus felt a need to check if the value
> returned was ok before they dared use it.
> My theory is originally the Erlang VM didn't have exceptions, so this
> was the only way to do it, and for the sake of consistency has
> remained even after the advent of exceptions.
well, it was certainly a lot messier before 'try', but unary catch has
been in the language since R3 or somesuch.
More information about the erlang-questions