RFC: Faster unions (vs `z.switch()`) · Issue #3407 · colinhacks/zod

This is a followup discussion to #2106 Okay, I'm glad I didn't rush a z.switch() implementation, because I now think there's a better way forward. This is definitely my own brilliant idea and not s...