The `with` construct is good, but it could be great

Stefan Koch uplink.coder at googlemail.com
Wed Jul 20 16:51:52 UTC 2022


On Wednesday, 20 July 2022 at 16:46:10 UTC, Quirin Schroll wrote:

> [...]
> Up for discussion, I’d even suggest a no-brace form for `with` 
> *declarations:*
> * `with Symbol:` or `with(Symbol):` (like attributes)

I have implemented `with(Sym):`

The patch is very short and should apply cleanly
https://github.com/UplinkCoder/dmd/commit/492ea4c0e17127e82982672553e33b1b6eb0491f



More information about the Digitalmars-d mailing list