-
Notifications
You must be signed in to change notification settings - Fork 579
Disassemble compiler package #232
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
base: main
Are you sure you want to change the base?
Conversation
FWIW I personally find this package structure "too flat"; I feel like there are bits which could still be nested further into |
b4c4385
to
309e4db
Compare
Of course, things are racing due to the symbol ID stuff :| |
@@ -1,4 +1,4 @@ | |||
package compiler | |||
package program |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Downside: we often use the name program
as a variable name.
RootFiles: rootFiles, | ||
Host: host, | ||
Options: options, | ||
DefaultLibraryPath: bundled.LibPath(), | ||
} | ||
program := compiler.NewProgram(programOptions) | ||
program := program.NewProgram(programOptions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that one can shadow here and that's "okay", but once you do this, you can't touch the package anymore in scope.
Moves packages around, renames
compiler
toprogram
.This PR is on top of #227