Skip to content

InitHandle should check whether a type with the same class name has already been registered #602

@ghost

Description

This would add a little bit of runtime cost at registration, but should be helpful for catching programming errors, especially with automatic registration, since there will be no central point where possible duplication become visible.

InitHandle should panic when a duplicate name is registered, because that is always a programming error. This should not constitute a breaking change, by the same reasoning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: coreComponent: core (mod core_types, object, log, init, ...)featureAdds functionality to the library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions