If Statement with Declaration
Seb via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 19 09:11:02 PDT 2017
On Wednesday, 19 July 2017 at 15:41:18 UTC, Jack Stouffer wrote:
> On Wednesday, 19 July 2017 at 13:30:56 UTC, sontung wrote:
>> Thoughts on this sort of feature?
>
> To be frank, I don't think that helping the programmer reduce
> the line count in their program by one line is worth further
> complicating the language.
As Steve mentioned, it's three lines and apart and it makes a
huge difference if you have to review a large codebase. After
all, syntactic sugar is one of the reasons why Python is so
popular.
More information about the Digitalmars-d
mailing list