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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃幐 refactor #4

Merged

Conversation

IWANABETHATGUY
Copy link
Contributor

refactor

@IWANABETHATGUY IWANABETHATGUY changed the title feat: 馃幐 refactor 馃幐 refactor Sep 2, 2021
@@ -9,21 +9,21 @@ pub trait CodeGenerator {
}

pub fn generate(node: IRNode) {
use IRNode as IR;
use IRNode::*;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only use * in this scope, so namespace conflict is not need to be concered.
the context is clear here, IR:: looks redundant

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! But the IR is defined in another file so I would want to use wildcard importing only when the definition is in the same file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have removed all the wildcard import

@HerringtonDarkholme HerringtonDarkholme merged commit d7ea3a3 into HerringtonDarkholme:main Sep 9, 2021
@IWANABETHATGUY IWANABETHATGUY deleted the refactor branch September 9, 2021 15:11
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.

None yet

2 participants