Skip to content

Instantly share code, notes, and snippets.

@pcwalton
Created April 24, 2012 16:15
Show Gist options
  • Save pcwalton/2481106 to your computer and use it in GitHub Desktop.
Save pcwalton/2481106 to your computer and use it in GitHub Desktop.
* "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
@marijnh
Copy link

marijnh commented Apr 25, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment