Function calls

Pelle Månsson pelle.mansson at gmail.com
Wed Jan 27 13:35:04 PST 2010


On 01/27/2010 09:53 PM, boscop wrote:
> On 27.01.2010 20:54, Michel Fortin wrote:
>> On 2010-01-27 14:01:56 -0500, downs<default_357-line at yahoo.de>  said:
>>
>>> Adam D. Ruppe wrote:
>>>> On Wed, Jan 27, 2010 at 06:34:57PM +0100, Pelle M�nsson wrote:
>>>>> I really like this feature, and would miss it should it go away.
>>>>
>>>> Me too.
>>>
>>> Me three.
>>
>> I'll miss the feature too. But I think it's the right thing to do
>> because otherwise you can't have properties that behave like properties
>> when returning a callable type.
>>
>
> It may be optically pleasant sometimes to be able to omit the parens,
> but beside the problem with returning a callable type it's also easier
> to spot where computations happen instead of fast access to properties,
> even more in complex expressions. Of course you can hide a bottleneck in
> a @property but I'm talking about the normal case here.
> And it's not hard to type two parens for better readability.

I think you're looking for a profiler. I also disagree about the 
readability part, I dislike line noise.



More information about the Digitalmars-d mailing list