Whole-known-network
<p><span class="h-card" translate="no"><a href="https://ioc.exchange/@azonenberg" class="u-url mention">@<span>azonenberg</span></a></span> you can do this at any level, like you can do this for an individual method or an individual field of a struct; anywhere `pub` is accepted</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> That sounds similar to C++ "friend" where it exposes all of the members though.</p><p>As an example of where this is useful, I want to have an allocator object that contains a number of child objects and calls a method to default-initialize that object before giving it out to an end user, but I don't want that method accessible in the public API.</p><p>But I also don't want the allocator to have access to all of the internals of the child.</p>
<p><span class="h-card" translate="no"><a href="https://ioc.exchange/@azonenberg" class="u-url mention">@<span>azonenberg</span></a></span> Rust has `pub(in crate::a) mod b;` where all of the stuff in `b` is visible only inside of the module `a` in the same crate, and nowhere else</p>
<p>I'm bisexual but I expected French culture and arts from <a href="https://mastodon.social/tags/Paris2024" class="mention hashtag" rel="tag">#<span>Paris2024</span></a> <a href="https://mastodon.social/tags/Olympics" class="mention hashtag" rel="tag">#<span>Olympics</span></a> .<br />Do we LGBT+ really need this exposure in every celebration event? I just don't think Olympics is the appropriate event for it. It looks like we are shoving down people's throats already.</p>
<p>Do any OO languages have a concept of granular compile-time access-control lists beyond public/private/protected?</p><p>Every so often when doing a class hierarchy design, I find myself in a situation where I want class A to be able to call method X of class B, but X is considered somewhat internal and not part of the public API of B.</p><p>My options are to make X public (implying it's part of the public API) or protected/private and then make A a friend (giving it access to all of the internals of B).</p><p>There's no way to say "expose these 3 methods to this other class, but they're not for public consumption)</p>
<p>When I was a child, I had childish things. But as I grew up, I was able to afford a lot more childish things. And now I have way, way more childish things. I cannot stress how much these childish things rule.</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@dabeaz" class="u-url mention">@<span>dabeaz</span></a></span> We hope to. The reason we’re going in the fall is that you have to reserve campsites, and there aren’t many of them.</p>
<p><span class="h-card" translate="no"><a href="https://fosstodon.org/@kev" class="u-url mention">@<span>kev</span></a></span> nice! What’s the brew of the day?</p>
@solidsanek@outerheaven.club When did ye take this picture!? :acat_insane: