I am wondering if there exist examples or guidelines on how generated code should look like when working with union types. I am thinking particularly about Java, Scala, Python, C# and Swift as target languages.
It is manageable to handle multiple inheritance, but RAML 1.0 is very generous with mixing types in union types, multiple inheritance and both together. So... has anyone thought about how this should look like in strongly typed languages?
Is support for type classes (or generics, e.g.
Tree<T> where type
T can be defined later) on the roadmap?