Skip to content

Add an InternalName type for clarity #246

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

Closed
wants to merge 1 commit into from

Conversation

andy-hanson
Copy link
Contributor

Adds type InternalName = string; to be used to mark names that are not simple names.
Note that this leads to a funny type annotation externalName: InternalName; -- maybe that should be renamed to internalNameOfExport.

@dcodeIO
Copy link
Member

dcodeIO commented Sep 6, 2018

I see how this might be helpful, but at some point all these names should be replaced with proper symbols anyway (unfortunately this is unlikely to help with clarity) to reduce the amount of string comparisons necessary, i.e. performance. Hence, not sure.

@andy-hanson andy-hanson closed this Sep 8, 2018
@andy-hanson andy-hanson deleted the internalname branch September 8, 2018 04:23
@andy-hanson
Copy link
Contributor Author

While I have your attention, could you explain more about internal names? While working on #249 I noticed that exports are looked up in a big global map by using a name qualified by the Source path, but why not just have a separate map per Source?

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

Successfully merging this pull request may close these issues.

2 participants