@property needed or not needed?

deadalnix deadalnix at gmail.com
Sat Dec 1 22:49:52 PST 2012


On Tuesday, 20 November 2012 at 04:12:54 UTC, Andrei Alexandrescu 
wrote:
> On 11/19/12 5:23 PM, Rob T wrote:
>> I don't have an answer, but there may be more to the picture 
>> than we think.
>
> I agree. In particular I find it a specious argument to insist 
> on religiously associating "()" with function calling and the 
> lack thereof with variable access. I don't see myself, when 
> seeing an expression like "generator(x, y, z).map!(x => x * 
> x)()", going like "holy cow, good I saw those trailing parens, 
> otherwise I would've sworn it was a variable". Trailing parens 
> in UFCS chains are just warts, this is the reality. Let's deal 
> with it.
>
>
> Andrei

And what do you think about map!(x => x * x) = generator(x, y, z) 
?


More information about the Digitalmars-d mailing list