Properties

Nick Sabalausky a at a.a
Sun Jan 11 07:42:46 PST 2009


"bearophile" <bearophileHUGS at lycos.com> wrote in message 
news:gkd3b0$fkb$1 at digitalmars.com...
> Miles:
>> In fact, if you follow the principle of orthogonality, instead of
>> calling the function without parameters, it would be much more sensible
>> to have 'foo' return the function address, and deprecate the address
>> operator. Then you could have functions and function/delegate pointers
>> with similar semantics (principle of least surprise).
>
> I agree.
>
>
>> But now it is quite already too late to fix this, unless we go through a
>> long period of deprecating the current behavior, until we can implement
>> the new sane one.
>
> Seeing how much experimental D2 is, I think there's time to fix design 
> bugs still.
>

Even if it weren't for that, I would still consider this important enough to 
be worth the hassle of changing it. It would be better than letting D 
forever maintain the cruft of a particularly bad design decision (no 
offense, Walter) in the same way that C++ would. 





More information about the Digitalmars-d mailing list