Is public by default an unsafe default?

NotYouAgain NotYouAgain at gmail.com
Thu May 2 08:10:48 UTC 2024


On Thursday, 2 May 2024 at 00:30:44 UTC, Jonathan M Davis wrote:
> ... However, at the same time, it's quite trivial to just slap
>
> private:
>
> at the top of the module if that's a concern.

Yes, had I known that I likely would not have created this thread 
;-)

Still, i guess it's highlight that option as being available, for 
those who (like me) did not know.

I encourage people to use it more often - if you can 'remember' 
to do that.

I cannot recall the last time I forgot to lock my car when 
leaving it, but I expect it will happen one day, and 'hopefully' 
nobody will know till I get back to it.


More information about the Digitalmars-d mailing list