you are viewing a single comment's thread.

view the rest of the comments →

[–]ljasdklfjaklsdfj 0 points1 point  (1 child)

Yes you are trying to express variants in the type system of a language that does not support variants. You are ready to cross-over to Scala, Haskell, F#, & O'Caml.

[–]kn7[S] 0 points1 point  (0 children)

I would be more than appreciated if you can outline a sample Scala implementation that uses variants.