-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Simplified package declaration for the Main
package
#2550
Simplified package declaration for the Main
package
#2550
Conversation
1e1a425
to
d3d9af9
Compare
…f the entry point.
Co-authored-by: Jon Ross-Perkins <[email protected]>
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.
To the extent that this proposal is renaming the entry point from Run
to Main
in documentation, would it be good to try resolving #2265 first? It looks like that proposal has been quiet for a couple months, and could maybe use attention from leads.
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.
Mostly marking this as needing an update now that #1869 is sorted out. Also a small comment inline.
8b42534
to
9f20a24
Compare
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.
I think this proposal is in a good state, regardless of how my pedantic comment is resolved.
Co-authored-by: Jon Ross-Perkins <[email protected]>
Main
package
Co-authored-by: josh11b <[email protected]>
Co-authored-by: josh11b <[email protected]>
Co-authored-by: josh11b <[email protected]>
Co-authored-by: josh11b <[email protected]>
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.
Awesome, ship it!
Make the preamble of simple programs more ergonomic, by removing the
package Main
from the main package and removing thepackage
declarationentirely from the main source file. Imports within a single package no longer
need to, and are not permitted to, specify the package name.
Partially covers #2001 / #1136.
Covers #1869.
Supersedes #2265.
Addresses design idea #2323.