user-defined operators

James Hague jamesh@REDACTED
Mon Mar 29 17:32:46 CEST 2004

I wrote:
>	1 + {2,4,6} returns {5,6,7}
>	{2,4,6} + 1 returns {5,6,7}

Obviously these should return {3,5,7} :)

>One point of debate: whether to allow
>nested tuples.  I would say no, as this
>starts leading to confusing agreement rules.

Let me clarify my stance by emphatically disallowing nested tuples.  As in
K, Erlang already provides the tools to deal with recursive structures.

More information about the erlang-questions mailing list