@property

Pelle pelle.mansson at gmail.com
Thu Jun 24 14:15:22 PDT 2010


On 06/24/2010 10:43 PM, Jonathan M Davis wrote:
> Other than legacy, code I see _0_ benefit to allowing non-property functions
> to be called as if they were properties. They aren't properties and
> shouldn't be treated that way. Now, a programmer is free to use @property as
> they please in the code and can abuse it just like any other part of the
> language, but the whole point of being able to call functions without parens
> is in order to have property syntax for properties. I, for one, do _not_
> think that non-property functions should be able to be called as if they
> were properties.
>
> - Jonathan M Davis
>

The problem lies within the definition of what a property is and is not, 
as well as can and cannot be.

A benefit to the current situation is that fewer parentheses means less 
line noise, and prettier code.


More information about the Digitalmars-d mailing list