A couple of extensions to `with` that would be worthwhile
Paul Backus
snarwin at gmail.com
Thu Oct 14 13:54:37 UTC 2021
On Thursday, 14 October 2021 at 13:50:29 UTC, Tejas wrote:
> So is it safe to say what Andrei wants can be accomplished with
> new block + `with`?
Yes.
> Is this proposed extension merely syntax sugar, then?
Yes, but most syntax is syntax sugar. The main issue with it is
that it's inconsistent with other, similar syntax sugar that's
already in the language.
More information about the Digitalmars-d
mailing list