Operation on Inter-Tuple types
bearophile
bearophileHUGS at lycos.com
Tue Feb 12 13:42:59 PST 2013
monarch_dodra:
> If we follow the rule of "least surprise" and that "things
> which are common behave the same", it might be safer to keep
> this behavior.
equal and cmp and OnHash among tuples of the same type must be
supported if all the types they contain support those operations.
If you remove that behaviour tuples become much less useful.
What's worth discussing is the opposite, so if it's a good idea
to allow other operations among tuples if their types support
those operations.
Bye,
bearophile
More information about the Digitalmars-d
mailing list