@property (again)
    deadalnix 
    deadalnix at gmail.com
       
    Wed Nov 20 19:43:03 PST 2013
    
    
  
On Thursday, 21 November 2013 at 03:14:30 UTC, Manu wrote:
> It would be nice to have a commitment on @property.
> Currently, () is optional on all functions, and @property means 
> nothing.
> I personally think () should not be optional, and @property 
> should require
> that () is not present (ie, @property has meaning).
>
> This is annoying:
>   alias F = function();
>
>   @property F myProperty() { return f; }
>
>   Then we have this confusing situation:
>     myProperty(); // am I calling the property, or am I calling 
> the
> function the property returns?
>
> This comes up all the time, and it really grates my nerves.
> Suggest; remove @property, or make it do what it's supposed to 
> do.
Amen.
    
    
More information about the Digitalmars-d
mailing list