Is public by default an unsafe default?

NotYouAgain NotYouAgain at gmail.com
Thu May 2 23:25:08 UTC 2024


On Thursday, 2 May 2024 at 19:49:40 UTC, Sergey wrote:
> On Wednesday, 1 May 2024 at 23:38:05 UTC, NotYouAgain wrote:
>> C++, C#, and Rust are private by default, and I thoroughly 
>> enjoy using them.
>
> Did this help them to be protected from atackers?
> Do you have this kind of information?

I doubt private-by-default would prevent a plane from executing a 
sharp dive because a passenger turned on the overhead light. But 
it might well prevent passengers from being able to directly 
instruct a plane to execute sharp dive.

There are no hidden surprises when something not meant to be 
public, is private.

I'm not talking about a few D modules here and there - you could 
argue that is just a matter of being a good programmer. But when 
discussing defaults in the context of large, complex, industrial 
strength software, where you have teams of developers, you really 
do not want to be inviting total breakdown .. by default.



More information about the Digitalmars-d mailing list