Why is D unpopular
Max Samukha
maxsamukha at gmail.com
Sun Jun 12 10:40:02 UTC 2022
On Sunday, 12 June 2022 at 09:54:42 UTC, Ola Fosheim Grøstad
wrote:
>
> Many OO languages don't provide encapsulation, like Python.
Right, but Python programmers are expected to prepend private
members with '_'.
> I would say encapsulation has more to do with scaling up and
> evolving, as well as reliability (e.g. actors).
> But I guess you can say that OO features span a space where
> encapsulation is one dimension.
Then it is natural to expect the feature would apply to the class
level (if we are talking about class-based OOP)? Really, I'm yet
to meet a D user that wouldn't be surprised 'private' is
module-level. And the 'friend' story rarely impresses them. The
reply is always: "Ok, 'friend' breaks OOP principles. Is D better
because it breaks OOP in its own way?"
More information about the Digitalmars-d
mailing list