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

Walter Bright newshound2 at digitalmars.com
Thu Jan 24 02:28:21 PST 2013


On 1/24/2013 2:21 AM, Minas Mina wrote:
> We are going to see code like this:
> printSomeStuff; // i think that's ugly.

Eeeyup. As for it being 'ugly', yes, it is a bit unsettling to us old time C 
programmers, but I think we can get used to it in short order. You can still add 
the () if you prefer.

> I suggested make parentheses optional only for UFC syntax.

The simpler the rules are, the more likely they are to work.

> Also isn't it possible to allow @property for functions that belong in a
> class/struct only?

I want to get rid of @property. It's an eyesore.


More information about the Digitalmars-d mailing list