davegurnell/bridges

Better encoding of discriminated unions in Flow?

Closed this issue · 1 comments

The encoding of discriminated unions in Flow is complex and tends to produce byzantine type error messages. It might be worth having a dedicated DiscriminatedUnion type with a better encoding, or maybe we can detect this pattern in the renderer and do a better job.

See #6.