Alternative Possibility - Implicit with
zjh
fqbqrr at 163.com
Sun Nov 20 03:24:19 UTC 2022
On Sunday, 20 November 2022 at 02:54:15 UTC, Walter Bright wrote:
> https://dlang.org/spec/statement.html#with-statement
> ...
I don't want `parentheses`. They have `indent` and `restriction`,
which can be avoided.
In my opinion, it is completely possible to open the `namespace`
of `struct/class/enum` in the`function scope`, and the damage is
not too much. Is the following OK?:
```d
with Aenum,Bclass,Cstruct;
...directly using A,B,C in the whole function scope...
```
More information about the Digitalmars-d
mailing list