"bearophile" <bearophileh...@lycos.com> wrote in message news:gkd3b0$fk...@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.