Andrei Alexandrescu wrote:
Ary Borenszweig wrote:
Andrei Alexandrescu wrote:
Ary Borenszweig wrote:
I think the only way you and Walter can understand what a property
is and what it is used for is to use for some time a language that
implements them. For example C#. Then you'll say "that's nice" and
would want to implement it in D.
I totally agree that "that's nice". But it's just notational
convenience, and there was no proof aired here to convince me otherwise.
Andrei
The ambiguity with a function returning a delegate? The debugger
support? Help UI designers with properties windows?
If none of those convinced you, ok.
Convince me of what? Of the fact that the current design has problems,
absolutely. That we need to embark on all sorts of baroque notations for
the sake of a convenience, not quite.
Andrei
I agree. It's very hard to find the correct way to implement it... :(