Skip to content

On name mangling #63

Description

@iamanigeeit

https://data-driven-world.github.io/2023/notes/oop/oop/

On the other hand, one can also use double leading underscores. This allows Name Mangling that prevents accidental overloading of methods and name conflicts when you inherit a class.

The link is actually telling us not to use double _ by default, and DDW never covers any cases where we should use it. I would prefer to remove it as it might be confusing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions