digitalmars.D - Re: Yet a new properties proposal
- Sjoerd van Leent <svanleent gmail.com> Jul 31 2009
- Rainer Deyke <rainerd eldwood.com> Jul 31 2009
- Sjoerd van Leent <svanleent gmail.com> Jul 31 2009
Dimitar Kolev Wrote:Just make all properties accessed by # and you will save yourself the ambiguities of calling a function or a property with the same names.
I understand your idea, but it is contrary to the common understanding that a property is a replacement of a field. As thus, from the users perspective, a property should look and act the same as a field. The this rules out another symbol.
Jul 31 2009
Sjoerd van Leent wrote:I understand your idea, but it is contrary to the common understanding that a property is a replacement of a field. As thus, from the users perspective, a property should look and act the same as a field. The this rules out another symbol.
Unless fields use the same new symbol. -- Rainer Deyke - rainerd eldwood.com
Jul 31 2009
Rainer Deyke Wrote:Sjoerd van Leent wrote:I understand your idea, but it is contrary to the common understanding that a property is a replacement of a field. As thus, from the users perspective, a property should look and act the same as a field. The this rules out another symbol.
Unless fields use the same new symbol. -- Rainer Deyke - rainerd eldwood.com
Yes, but won't that reintroduce the problems that are already available?
Jul 31 2009
Sjoerd van Leent wrote:The this rules out another symbol.
Unless fields use the same new symbol.
Yes, but won't that reintroduce the problems that are already available?
The solution is easy. You just add a second # to properties. :-) -- Michiel Helvensteijn
Jul 31 2009