4 ms·
Yes, you have to rename a var/field to change public/private. It's not a huge deal of course, just an annoying exception. Re: optimization, what does using cas
by the_gipsy 4y ago
Yes, you have to rename a var/field to change public/private. It's not a huge deal of course, just an annoying exception.
Re: optimization, what does using casing instead of an explicit `pub` prefix optimize for, exactly? Compiler complexity? Typing ergonomics?
- rawoke083600 4y agoYou ever read the access modifier rules of C++ ? Can you explain that to a newbie in 2 sentences ?
- the_gipsy 4y agoNo, but I don't think that's relevant. Rust or Java access is doesn't require much typing ceremony, and doesn't require you to rename a var to change the access.
- aatd86 4y agoI think it optimizes for readability.