If Statement with Declaration

Olivier FAURE via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 20 04:06:15 PDT 2017


On Wednesday, 19 July 2017 at 20:42:33 UTC, Steven Schveighoffer 
wrote:
> I remember reading a discussion about using with statements to 
> do this earlier as well, but I can't find it.
>
> -Steve

I don't think this is the discussion you're talking about, but 
this does bring DIP 1005 to mind:

https://github.com/dlang/DIPs/blob/master/DIPs/DIP1005.md

Personally, I'm in favor of `with` for both variable declarations 
and imports. It's pretty intuitive semantically.


More information about the Digitalmars-d mailing list