Discussion Thread: DIP 1043--Shortened Method Syntax--Final Review

Quirin Schroll qs.il.paperinik at gmail.com
Tue Jul 19 18:03:04 UTC 2022


On Friday, 17 June 2022 at 22:11:38 UTC, harakim wrote:
> Oh wow! Doing `if (…) { writeln(); return; }` has been a pet 
> peeve of mine almost since I started programming. I never knew 
> you could do `if (…) return writeln()` in D. That made my day. 
> Thanks!

Only because you *can* does not imply you *should.*


More information about the Digitalmars-d mailing list