Code That Says Exactly What It Means

jmh530 john.michael.hall at gmail.com
Tue Oct 28 18:18:33 UTC 2025


On Tuesday, 28 October 2025 at 16:26:57 UTC, Max Samukha wrote:
> On Tuesday, 28 October 2025 at 13:25:42 UTC, jmh530 wrote:
>> On Tuesday, 28 October 2025 at 02:28:41 UTC, Walter Bright 
>> wrote:
>>> I know you didn't propose this, but I had quite enough of 
>>> C++'s "friend" classes. I've never missed that misfeature in 
>>> D.
>>
>> You are correct on this.
>
> He's been attacking a strawman. Nobody asked for friend 
> classes. People have been asking for the ability to restrict 
> access to non-friend class members inside a module. Even Rust 
> gives you that by allowing struct implementations in in-file 
> submodules.
>
> (Dislaimer: I don't care about "class-private".)

More of a slippery slope than a strawman. ;)


More information about the Digitalmars-d mailing list