No household is perfect

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Dec 3 11:53:47 PST 2013


On 12/3/13 4:41 AM, Russel Winder wrote:
> On Tue, 2013-12-03 at 13:29 +0100, Tobias Pankrath wrote:
> […]
>> Does scala have arbitrary operators like Haskell? Looks useless
>> in D. If you have an operator '+' that should not be pronounced
>> 'plus' you are doing it wrong.
>
> Yes.
>
> 	a + b
>
> could be set union, logic and, string concatenation. The + is just a
> message to the LHS object

or RHS :o).


Andrei



More information about the Digitalmars-d mailing list