Reddit: why aren't people using D?

Walter Bright newshound1 at digitalmars.com
Thu Jul 23 21:54:40 PDT 2009


Daniel Keep wrote:
> That's true, but you haven't addressed the other side of it: property
> setters.

Right. Consider the case where there's a pure function with no 
arguments, and an overload with the same name and one argument, and no 
other overloads. Wouldn't it be reasonable to take that as a property 
setter?

> With D, you would need to explicitly state which methods are properties
> manually somehow; dunno how you would, though.  Especially when you
> consider subclassing and mixins.

See my rule above - I think it'll work.



More information about the Digitalmars-d mailing list