Overloading relational operators separately; thoughts?

Minty Fresh via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 28 13:35:09 PDT 2016


On Wednesday, 28 September 2016 at 20:16:08 UTC, Walter Bright 
wrote:
> To reiterate, operator overloading exists in D to support the 
> inclusion of arithmetic library types. Any other purpose is 
> discouraged, and that includes expression templates and things 
> like << for iostreams.

It seeds rather harsh to discourage every possible use case of a 
feature sans one, simply because one does not agree with the 
others.



More information about the Digitalmars-d mailing list