Discussion Thread: DIP 1039--Static Arrays with Inferred Length--Community Review Round 1

Atila Neves atila.neves at gmail.com
Wed Jan 13 15:41:57 UTC 2021


On Wednesday, 13 January 2021 at 15:31:33 UTC, Nick Treleaven 
wrote:
> On Wednesday, 13 January 2021 at 14:48:07 UTC, Atila Neves 
> wrote:
>>
>> Why do they have to scroll to the top?
>
> They don't, you're right. But if you want to use it throughout 
> the module you need a top-level import, by convention at the 
> top.
>
> Also the convention seems to be to put a local import at the 
> start of a scope rather than sandwiched in the middle of 
> statements.

Yes.

1. Save point
2. Jump to start of function
3. Write local import
4. Jump back

More work than not having to do anything, obviously, but still.



More information about the Digitalmars-d-announce mailing list