Is the -property compiler flag broken/bad idea?

Steven Schveighoffer schveiguy at yahoo.com
Thu Jun 6 06:49:45 PDT 2013


On Wed, 05 Jun 2013 17:36:11 -0400, Jonathan M Davis <jmdavisProg at gmx.com>  
wrote:

> Strict property enforcement is as good as dead. -property is still there  
> for
> the moment, but its days are numbered. Walter and Andrei pretty much  
> consider
> @property to have been a failure and seem to want to get rid of  
> @property and
> go to pretty much what we had before. _Exactly_ what we're going to end  
> up
> with isn't clear at the moment, but it's crystal clear that strict  
> property
> enforcement will never happen, because it's too unpopular.

I think any solution has to disallow setter syntax on arbitrary functions.

Anything else is up for debate IMO.  And I've come to the point where I  
don't care, as long as SOMETHING is decided.

One other sticky point is UFCS properties.

-Steve


More information about the Digitalmars-d-learn mailing list