No household is perfect
Paulo Pinto
pjmlp at progtools.org
Tue Dec 3 06:25:49 PST 2013
On Tuesday, 3 December 2013 at 12:41:40 UTC, 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, it determines what to do. This is
> the whole
> basis for DSLs.
Fully agree, I still cannot understand why so many people have
problems seeing operators as function calls with different set of
letters, like so many languages allow.
Maybe I've spent too much time with math at the uni. :)
--
Paulo
More information about the Digitalmars-d
mailing list