Do we want functions to act as properties, or merely omit parens for ufcs/chaining?

jerro a at a.com
Tue Jan 29 04:24:17 PST 2013


> And there is another problem with the "superior" D approach: a 
> typing mistake in the name of a property might let you not with 
> one property that is r/w, but with two properties to which one 
> is r/o and the other is w/o.

A bug like this will be found as soon as someone writes a test 
for that property or writes some code that uses it. And once it 
is found, it is trivial to fix. If the code was not tested at 
all, it is bound to contain other bugs anyway and some of those 
will be much harder to find and to fix.


More information about the Digitalmars-d mailing list