With statement extension
Marc Schütz via Digitalmars-d
digitalmars-d at puremagic.com
Wed Apr 27 03:44:13 PDT 2016
On Tuesday, 26 April 2016 at 12:53:49 UTC, deed wrote:
> Would it be possible to extend current with statement's
> expressiveness by two lowerings:
>
> 1) Alias expression/symbol and replace in macro fashion:
> with (a : exprA) { /* use a. will be replaced by exprA by
> compiler. */ }
> 2) Accept a list of arguments: with (a, b : expr , ...) {} gets
> lowered to
> with (a) with (b : expr) ... {}
This looks useful, and should be easy to implement. +1 from me.
More information about the Digitalmars-d
mailing list