First draft: added with-colon statement

Walter Bright newshound2 at digitalmars.com
Thu Jan 16 06:53:23 UTC 2025


This was requested in the newsgroups. Adds the syntax:

```
{
     with (E):
        statement;
        statement;
}
```

which is equivalent to:

```
{
     with (E)
     {
        statement;
        statement;
     }
}
```

and that's all there is to it.

https://github.com/dlang/dmd/pull/20715


More information about the dip.development mailing list