Properties

bearophile bearophileHUGS at lycos.com
Sun Jan 11 07:30:40 PST 2009


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.

Bye,
bearophile



More information about the Digitalmars-d mailing list