Why I'm Excited about D

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 8 18:28:03 PDT 2015


On 4/8/15 4:15 PM, Idan Arye wrote:
> On Wednesday, 8 April 2015 at 16:47:10 UTC, Andrei Alexandrescu wrote:
>> On 4/8/15 2:24 AM, Idan Arye wrote:
>>> At the very least, put () after the writelne:
>>
>> No. -- Andrei
>
> Why not? The property syntax's purpose is to create... well...
> properties. Give you the illusion that you are reading and writing
> member fields when you are actually calling functions.

It seems to be a difference without a distinction. One day I got tired 
of writing r.empty and r.front but r.popFront(). Furthermore I got tired 
to spend time thinking where I should insert parens vs. where I 
shouldn't. So I dropped parens from that. And then from other places. 
Apparently I didn't get struck by lightning where I stood.

Andrei




More information about the Digitalmars-d mailing list