proposal: short => rewrite for function declarations

claptrap clap at trap.com
Sat Oct 10 14:30:06 UTC 2020


On Saturday, 10 October 2020 at 10:25:05 UTC, Andre Pany wrote:
> On Saturday, 10 October 2020 at 10:18:15 UTC, claptrap wrote:
>> On Friday, 9 October 2020 at 14:44:25 UTC, Adam D. Ruppe wrote:
>>
> While the proposal from Adam is a 1 liner also from a style 
> guide perspective:
>
> @property x() => _x;
>
> (Yes, this is nitpicking... but for me the reason why I like 
> the proposal).

A better solution is to modify the style guide to allow one 
liners where reasonable..

And you can just ignore it till then. :)


More information about the Digitalmars-d mailing list