▲ | oefrha 4 days ago | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I'm not sure I understand you, or you understand me. I'm saying this is okay:
And yes you should convert to OrderTypeA or OrderTypeB at the first opportunity in domain code, and only convert from them at the latest opportunity.You seem to be under the impression that I'm advocating for something like
That's what I consider going crazy. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | debugnik 4 days ago | parent [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
> And yes you should convert to OrderTypeA or OrderTypeB at the first opportunity in domain code, Go can only downcast through interfaces so there's something missing to your approach to unions, isn't there? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|