Skip to content

Requiring descriptors to have matching finality #61

Description

@tlively

We could optionally require a descriptor type to be final if and only if its described type is final. With the fixed validation rules from #58, it's impossible to define a subtype of either an open described or descriptor type if the other is final, so in practice one being final makes the other final. Requiring them both to be explicitly final in that case makes it slightly simpler for the engine to optimize casts, etc.

cc @Liedtke, @jakobkummerow

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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