Skip to content

Consider adding support for identifier aliases #312

Description

@tschneidereit

Over in #311, @oovm points out that the fact that components broadly include identifiers in their public interfaces means that it's hard to fix naming mistakes in stable APIs.

I wonder if it might make sense to explicitly support aliases for identifiers in all or most positions to address this: for interface, type, and function names, but ideally also for parameter and return value names.

I think a good way to integrate this would be to introduce a specific structured annotation for aliasing, and support that in all places where an identifier is allowed.

Bindings generators could then use these annotations to generate bindings for all the aliases, and have them use the original identifier internally.

(And if we want to fix a naming mistake, we could maybe do so by changing the name, but introducing an alias for the old name.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions