When D is not nice

Ary Borenszweig ary at esperanto.org.ar
Sun Jul 6 18:46:41 PDT 2008


Jarrett Billingsley a écrit :
> "Ary Borenszweig" <ary at esperanto.org.ar> wrote in message 
> news:g4rhq1$1i7a$1 at digitalmars.com...
> 
>> But concatenating such things is so common... Instead of doing what it is 
>> obvious, you get an error. At least built-in types should have opCat and 
>> opCat_r defined like that.
> 
> Common in many languages, yes.  Convenient, yes.  But it's a pointless hole 
> in the type system that I don't want to see opened.  Having used D for a 
> while, I've come to appreciate using a function to do formatting rather than 
> string concatenation.  It's more flexible and can be more efficient, and 
> doesn't take that much more typing. 

How is it a pointless hole in the type system? I thought having "~" be 
the concatenation operator instead of "+" was just to prevent that hole.



More information about the Digitalmars-d mailing list