ta0kira / zeolite

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

Add `$SourcesOnly$` pragma. #81

Closed ta0kira closed 4 years ago

ta0kira commented 4 years ago

This should make a .0rp visible only to non-.0rp source files to avoid cluttering the public namespace of reverse deps. This should also include clearer visibility errors, rather than just "not found" when something isn't visible.

ta0kira commented 4 years ago

I don't quite remember why I thought that private_deps and $ModuleOnly$ were insufficient here. It seems like the only use-case is having both "private worthy" (e.g., helper functions) and "public worthy" (e.g., container interfaces) logic in a single library module.