@property - take it behind the woodshed and shoot it?

monarch_dodra monarchdodra at gmail.com
Thu Jan 24 02:24:50 PST 2013


On Thursday, 24 January 2013 at 10:22:00 UTC, Minas Mina wrote:
> f = g; where it means f(g) is really ugly. I wouldn't like to 
> see this.
>
> Also:
>
> void printSomeStuff()
> {
>   //...
> }
>
> We are going to see code like this:
> printSomeStuff; // i think that's ugly.
>
> I suggested make parentheses optional only for UFC syntax.
> Also isn't it possible to allow @property for functions that 
> belong in a class/struct only?

@property also makes sense for global functions that need to 
emulate a run-time initialized static variable.


More information about the Digitalmars-d mailing list