Fully dynamic d by opDotExp overloading

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Apr 17 12:44:30 PDT 2009


Don wrote:
> Leandro Lucarella wrote:
>> Nick Sabalausky, el 17 de abril a las 14:45 me escribiste:
>>>> I'm not yet convinced, but it remains to be seen if there is some 
>>>> killer functionality that cannot be had without it.
>>> Same here. So far, it just doesn't seem worth the loss of knowing at 
>>> a glance what is and what might not be verified at compile-time. If I 
>>> wanted to be throwing compile-time guarantees out the window, I'd go 
>>> use PHP.
>>
>> Being able to do it doesn't mean you have to use it always. You don't
>> loose anything if you don't use it =)
> 
> Correction: You don't lose anything if *nobody you interact with* uses 
> it. A feature that is wide open to abuse is dangerous, even if you'll 
> never abuse it yourself.
> The feature has to be worth using.
> 

On the other hand, using the feature requires some due diligence. It 
doesn't strike me as a dangerous feature that's also the path of last 
resistance, like casts.

Andrei



More information about the Digitalmars-d mailing list