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 towith (a) with (b : expr) ... {}
This looks useful, and should be easy to implement. +1 from me.
