Hi guys, is it possible to lift the restriction that in an object variant the different branches cannot have the same field name? I think it would unlock some cool refactoring and abstraction options.
Great, so I see it's being discussed. I don't care for the syntax, if it's implemented it can then be used. Personally I think Araq's fields emphasis instead of type emphasis is clearer, but maybe that's because of my use case of many many types. There is another way with object orientation but one might reach limitations since there are no fully supported interfaces. maybe generics are flexible enough. right now I use OOP but the code is specific and feels unorganized.