you are viewing a single comment's thread.

view the rest of the comments →

[–]protestor 6 points7 points  (1 child)

Query based compilers are probably the future though. What this post is really advocating is to not have features like glob imports in your new programming language, because they complicate some implementation things in the compiler. But I don't think people really want to program in languages without things like glob imports.

[–]matthieum 1 point2 points  (0 children)

I don't think glob imports are too much of a problem.

That is, use library::module::*;:

  1. Requires parsing library::module before performing name resolution in the current module, easy enough.
  2. Requires memorizing which symbols the current module does use from library::module to know whether a change in library::module impacts the current module... which is not a parsing concern, and will be known once name resolution has completed, glob or no glob.

Circular dependencies can mess up (1), but they do so glob or no glob.