Function calls

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Jan 27 12:54:42 PST 2010


downs wrote:
> Adam D. Ruppe wrote:
>> On Wed, Jan 27, 2010 at 06:34:57PM +0100, Pelle Månsson wrote:
>>> I disagree, I find the function calls without the () to be really 
>>> prettifying.
>>>
>>> But maybe that's just me.
>>>
>>> I don't think that it causes serious bugs, you would see that it's an 
>>> integer the moment you try and use it. It also helps changing code 
>>> from/to functions.
>>>
>>> I really like this feature, and would miss it should it go away.
>> Me too.
>>
> 
> Me three.

There was a long discussion about that, which prompted the addition of 
@property. I was in the anti- at property camp, but had understanding and 
sympathy for the ambiguity issues involved without @property.

There was a vote in which as far as I recall the pro- at property camp was 
beaten to a tender pulp.

Now @property is in. That has created (as I had anticipated) the 
unresolved issue of choosing between @property or just function for any 
given parameterless function. Also I need to litter my code with 
@property. To this day I am not sure whether we made the right decision.


Andrei



More information about the Digitalmars-d mailing list