No household is perfect

Russel Winder russel at winder.org.uk
Tue Dec 3 04:41:25 PST 2013


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.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder



More information about the Digitalmars-d mailing list