First draft: added with-colon statement

Quirin Schroll qs.il.paperinik at gmail.com
Sat Jan 18 05:07:57 UTC 2025


On Thursday, 16 January 2025 at 06:53:23 UTC, Walter Bright wrote:
> This was requested in the newsgroups. Adds the syntax:
>
> ```d
> {
>     with (E):
>        statement;
>        statement;
> }
> ```
>
> which is equivalent to:
>
> ```d
> {
>     with (E)
>     {
>        statement;
>        statement;
>     }
> }
> ```
>
> and that's all there is to it.
>
> https://github.com/dlang/dmd/pull/20715

Cool. Doesn’t require a DIP because this is purely additional.


More information about the dip.development mailing list