News for hackers. Stuff that matters.
Re:Why is OOP still so widely spread? by seanmcdirmid on Wednesday September 02, 2020 @07:56PM (#24359541)
I like private sometimes, but encapsulation is at its core tied to the notion of identity and hence nominal typing. If a name stands to represent something rather than its structure, well, that name is basically encapsulating.

Even in functional languages names are used all the time with a huge amount of encapsulation behind them. They just don't have the benefit of a type system to manage that.

There are no comments on this comment yet.