ta0kira / zeolite

Zeolite is a statically-typed, general-purpose programming language.
Apache License 2.0
18 stars 0 forks source link

Should `--show-deps` filter out private categories? #92

Closed ta0kira closed 3 years ago

ta0kira commented 4 years ago

The main reason for doing so would be to avoid confusion about multiple private categories with the same name in the same module. This is possible if multiple .0rx declare a category with the same name.

An alternative is to qualify the output of --show-deps, e.g., the last few characters of the namespace. This would make --show-deps nondeterministic, however. Numbering the occurrences in the output also wouldn't work, because the sorting within compile-metadata might be nondeterministic; this would make the numbering change after recompiling.

I guess the main point of --show-deps is to account for the dependencies in .zeolite-module. It would be good to know internal dependencies between categories in the module being shown, so that the user is aware of indirect dependencies pulled in when using a particular category.

ta0kira commented 3 years ago

I'll reopen this if it turns out to be problematic.