Now that you can't really put pub
at the top-level of things like impl/extern/trait, you don't need the priv
keyword to control method visibility of various items because they're all private by default.
pros:
difficulties:
priv
I'd vote to remove it.cons:
priv
, and if we removed priv there would be no way to make half the enum variants public and half private. In theory pub enum
makes everything public and you could otherwise write pub
on each variant, but the type name would still then have to be public and if it didn't have pub
in front of it it wouldn't really make senseWhat do others think about this?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4