Created
April 24, 2012 16:15
-
-
Save pcwalton/2481106 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* "pub" or "priv" prefix on items; private by default | |
- "pub *;" changes the default | |
* "import" -> "use"; "use" -> "link" | |
- "pub import" is allowed to reexport an import | |
* if the enum is public, its variants are automatically public | |
- variants can be prefixed with "priv" to be private | |
* "export" is removed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I dislike
pub *;
-- it doesn't seem to fit with the rest of the syntax very well. I'd much rather use an attribute on the module for that. (#[open]
?)Otherwise, this seems nicely minimal.