Skip to main content

Questions tagged [imports]

For questions relating to the 'import', 'use', or other related structures of programming languages.

Filter by
Sorted by
Tagged with
2 votes
1 answer

Why do we put imports at the top of files? [closed]

Most of the popular programming languages I know of either require or strongly encourage import statements to be at the top of the file, before any of the ...
Silvio Mayolo's user avatar
5 votes
2 answers

What are the different ways import statements can be implemented?

The only way that I know how import statements could be implemented is in the parsing stage where the imported module's AST is ...
FireTheLost's user avatar
  • 1,613
10 votes
1 answer

What are good specifications for naming packages/modules in a language?

Different languages have different naming conventions for their modules. For example, Java-family languages usually use full reverse-domain-name names for packages (ie ...
Ginger's user avatar
  • 2,619
11 votes
2 answers

What are the different types of import semantics?

As per my current understanding, there are many different ways that imports, and other related operations, are handled in different programming languages. For example, ...
FireTheLost's user avatar
  • 1,613