Polymorphic variant representation

It is true, but they allow more flexibility and I expect them to be easier to learn, from a beginner point of view, than GADT.

You are right. It is exactly why I am looking for polymorphic variant. In this different topic Sum types: sub- & super-type, I present two use cases where polymorphic variants perform well but, are maybe too powerful for what I want to do.

Oh… so it is possible, but is caught by the compilation.
I am curious, is it an already known collision example, or did you find it just for me? :slight_smile: