Why I'm Excited about D

Idan Arye via Digitalmars-d digitalmars-d at puremagic.com
Thu Apr 9 10:31:33 PDT 2015


On Thursday, 9 April 2015 at 01:28:05 UTC, Andrei Alexandrescu 
wrote:
> 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

This is not about being struck by lightning. This is about being 
struck by the next developer who has to read your code.


More information about the Digitalmars-d mailing list