Is public by default an unsafe default?
NotYouAgain
NotYouAgain at gmail.com
Fri May 3 12:37:16 UTC 2024
On Friday, 3 May 2024 at 11:10:08 UTC, Serg Gini wrote:
> On Thursday, 2 May 2024 at 23:56:19 UTC, NotYouAgain wrote:
>> So is public by default an unsafe default? Well in the context
>> of the above, of course it is.
>
> But isn’t it more about library/framework decisions, rather
> than the language itself?
>
> PHP has public by default, but frameworks are choosing their
> own strategy:
>
> http://fabien.potencier.org/pragmatism-over-theory-protected-vs-private.html
https://ocramius.github.io/extremely-defensive-php/#/
More information about the Digitalmars-d
mailing list