Skip to content

Consider having add_port return the existing port on redefinition #147

@sherbst-openai

Description

@sherbst-openai

Currently ModDef::add_port errors out if there is already a port with the same name. We could consider allowing add_port to return the existing port instead, if the IO definition is the same. This could either be the default behavior of add_port, or there could be an add_port variant with this behavior.

Reported by @twabbott-openai

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