proposal: short => rewrite for function declarations

Imperatorn johan_forsberg_86 at hotmail.com
Sat Oct 10 16:35:29 UTC 2020


On Saturday, 10 October 2020 at 15:11:16 UTC, Mike Parker wrote:
> On Saturday, 10 October 2020 at 13:55:13 UTC, Imperatorn wrote:
>
>> Might be a bit of a stretch to say it becomes a "foreign 
>> language" just because you change one thing...
>
> What I mean is that my brain is conditioned to see the braces 
> and the return statement. I recognize everything immediately 
> and don't have to think about it. If I'm scanning D code and I 
> see the shorthand lambda syntax for delegates, I have to stop 
> and think about it. So yeah, to me, it's like a foreign 
> language.

Well ok, I guess "foreign" because it's not in the language atm. 
Sure. But not foreign as in "I don't understand". That's quite 
different.


More information about the Digitalmars-d mailing list