Cool project idea: organise/remove imports
Guillaume Piolat
first.name at gmail.com
Fri Jul 12 11:12:29 UTC 2024
On Friday, 12 July 2024 at 09:37:46 UTC, Vladimir Panteleev wrote:
> I'm not sure that local imports are best for all cases. They're
> good for trivial things like pure parsing functions wanting to
> import some utility module. Otherwise, having them at the top
> of the module is a good way to document and understand the
> relationships of the module with other parts of the program -
> for instance, networking imports tell you right away that it
> talks to other things on the network, filesystem imports tells
> you it uses files, same with custom subsystems.
+1
I tend to always remove local imports now
More information about the Digitalmars-d
mailing list