News for hackers. Stuff that matters.
Re:I'm Switching to Python and Actually Liking It by dragonwriter on Wednesday July 16, 2025 @03:00PM (#44585690)
It prevents accidentally overriding the member in subclasses which can prevent private implementation details of parent classes from being accidentally interfered with by child classes.

As composition over inheritance becomes more idiomatic, there are probably less places where this matters, but as long as inheritance is used at all it can be useful.

There are no comments on this comment yet.