Skip to content

Should private or protected methods be preferred? #5

@cfournie

Description

@cfournie

When defining class methods, we can hint that a function is protected by prefacing it with _ or we can invoke name-mangling by prefacing it with __. When there isn't an obvious reason why someone would want to override a method but there's also not an obvious reason why someone should not be able to, which should be our default?

For a more specific example, see here.

@erikwright @JasonMWhite

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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