True Properties Poll
Jesse Phillips
jessekphillips+d at gmail.com
Fri Jul 31 12:20:26 PDT 2009
Jesse Phillips Wrote:
> It seem no one is confident in their poll writing skills, so I'll take stab at it.
>
> This poll is related to D not providing "true" properties. Details and discussion can be found in DIP4: http://prowiki.org/wiki4d/wiki.cgi?LanguageDevel/DIPs/DIP4
>
> Below you will find a list of options. Please place a maximum of three votes starting with what you would prefer and then your alternatives. Reasoning can come after your vote.
>
> 1. Provide a special syntax/keyword to specify properties.
> 2. Keep things as they are.
> 3. Keep things as they are, resolving the += ... without involving new property syntax.
> 4. Remove current "property" syntax.
> 5. Prevent . on rvalues
>
> Extended Voting
>
> A. #4 should happen with or without a new property syntax.
> B. Preventing . on rvalues should be done anyway.
>
> If I missed something, to bad, write your own poll. Please only respond if you are voting or commenting on another's vote. This allows top level posts to contain poll answers only.
3
1
2
Properties are syntactic sugar, I do not find the issues related to function/property ambiguity to an issue. The only thing I have against the current syntax is that you can't use shortcuts like += or ++. If this can be resolved without a new syntax, the better.
I find writing
property int foo { get; set;}
More work than
public int foo;
More information about the Digitalmars-d
mailing list