Balancing DX and Type Safety: Using `Data.TaggedEnum` and `Data.TaggedClass` Together
Our team was trying to figure out if we wanted to use
I quickly discovered we can use both to kinda get both perks but since it doesn't seem documented, I wasn't sure if this was officially supported or best not to do that?
https://effect.website/play#b06bd3059ca2
Data.TaggedEnum or individual Data.TaggedClass . We liked the DX for using class and TS keeping the name of the type as you hover instead of inlining, but having access to $match and $is was nice too.I quickly discovered we can use both to kinda get both perks but since it doesn't seem documented, I wasn't sure if this was officially supported or best not to do that?
https://effect.website/play#b06bd3059ca2
