Why not?

Uriel uriel at inbox.ru
Sun Nov 29 02:31:53 PST 2009


Walter Bright wrote:
> Daniel Keep wrote:
>> isn't much more typing, and makes it explicit what's going on.  Consider
>> it from a maintenance perspective: with this addition, you can't
>> actually tell what's being called.  Is it that foo function there, or is
>> there another overload somewhere in the imports that takes those
>> arguments?  There should be a very good reason for having any form of
>> "magic" syntax.
> 
> C++ has such conversions, and the trouble happens when there are two 
> many possible conversions. One loses track of what is happening.

Definately, I just hadn't thought about situation where there is many 
classes with matching contructors. And keeping this behavior only for 
the case of one possible conversion would just complicate the code.
It's all the laziness. :)



More information about the Digitalmars-d mailing list