Inline imports redivivus
bauss
jj_1337 at live.dk
Tue Mar 15 13:59:55 UTC 2022
On Tuesday, 15 March 2022 at 13:53:51 UTC, Andrea Fontana wrote:
> On Tuesday, 15 March 2022 at 10:25:54 UTC, bauss wrote:
>> ```d
>> scope static foreach (...) { ... }
>>
>> or
>>
>> static foreach (...) scope { ... }
>> ```
>>
>> Would've been much cleaner.
>
> ```d
> {
> static foreach(...)
> {
>
> }
> }
> ```
The whole point is to avoid the extra brackets and/or the extra
unnecessary indentation.
More information about the Digitalmars-d
mailing list