[erlang-questions] Any wisdom to offer on "tagged return values"
Fri May 1 23:30:17 CEST 2009
> Ironically in the lists man page it says keysearch is deprecated in
> favor of keyfind, which does exactly what the programming rules
> cautions against.
> keyfind(Key, N, TupleList) -> Tuple | false
There is nothing ironic or wrong here. Tuple is a tuple, not an atom so
the two cases cannot be confused.
More information about the erlang-questions