Is your feature request about something that is currently impossible or hard to do? Please describe the problem.
Currently, the only way to represent a union type is with any. A more specific type where each permitted type is separated by | would help a good deal.
Describe the solution you'd like
Built-in vim9 script support for union types. It's not very difficult to represent any other type; product types can be represented using classes that implement multiple interfaces. I suppose an & operator for product types wouldn't hurt, but union types don't really exist in any reasonable form (from what I can tell).
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()