[erlang-questions] Any wisdom to offer on "tagged return values"

Per Melin per.melin@REDACTED
Wed May 6 23:41:07 CEST 2009

Ulf Wiger:
> Not exactly revolutionary, nor especially elegant, but
> it's extremely convenient to be able to chain functions
> together without having to insert unwrapping code.

I personally like the combination of the tagged return value and the
description of this function in the inet module:

gethostname() -> {ok, Hostname}
Returns the local hostname. Will never fail.

More information about the erlang-questions mailing list