Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional #{export} #70

Open
asoffer opened this issue Jul 26, 2021 · 0 comments
Open

Conditional #{export} #70

asoffer opened this issue Jul 26, 2021 · 0 comments

Comments

@asoffer
Copy link
Owner

asoffer commented Jul 26, 2021

#{export} is a tag that can be added to library module declarations making a symbol visible to any importer of that module. For generic declarations, we can either export all or no instantiation. It'd be nice to do that conditionally on the arguments passed to the instantiation.

Perhaps this is a fool's errand, because knowing whether or not it should be exported still requires instantiation, but other such tags could benefit from conditionality as well so designing this isn't entirely worthless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant