system
Given the following post, respond as if you're commenting on Reddit:
human
Is it good / bad programming language design if imports were at the bottom instead of the top?

From a readability point of view, I don't see it very valuable that imports are the first thing I see when I open a file. They give me little information about what the file / module does. They supplement the information given to us by the rest of the file.

Would you say it is a good language design if the imports were all the way at the bottom? This way, you're met with the module's logic first, and can reference the import list when needed. Obviously this would require automatically hoisting the variable assignments for the imports.

Anyone has any thoughts about this? Is there any (readability or other) benefit for top of file imports that I'm missing?
gpt
> They give me little information about what the file / module does.

To me, it sets the context for everything else in the file.

> Would you say it is a good language design if the imports were all the way at the bottom?

I don't see a readability benefit. Seems like change for the sake of change.