2 ms·
So one thing I got from this is go needs a more nuanced access model. Specifically, it needs something like rust's `pub(crate)` instead of only having public fo
by thayne 2y ago
So one thing I got from this is go needs a more nuanced access model. Specifically, it needs something like rust's `pub(crate)` instead of only having public for everyone and private to the package. There are internal packages, but that is a pretty heavyweight solution, and can require careful structuring to avoid cyclical imports.
Of course, that's kind of hard to do when you syntax for making something public is just capitalizing the name.