-
Notifications
You must be signed in to change notification settings - Fork 98
Description
Currently one can use include to derive one world from another, however I've been finding myself wanting more ways:
include_imports- Likeinclude, but only includes importsinclude_exports- Likeinclude, but only includes exportsinclude_imports_exported- Likeinclude_importsexcept translates the imports to exportsinclude_exports_imported- Likeinclude_exportsexcept translates the exports to imports
(suggestions for better syntax/naming welcome)
For example, include_imports would be useful when one wants to make a library component that can link to another component and otherwise occupy the same world. And include_imports_exported would be useful when one wants to make a world for the implementation that components of another world need.
In my current projects, I'm finding myself effectively working around the lack of include_imports by splitting out worlds that only have imports and than having the main worlds and library worlds include them. And for the lack of include_imports_exported I'm manually duplicating and translating imports in one world to exports in another.