Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question : was there some fundamental reason not to support union types? #1016

Open
balayanv opened this issue Sep 19, 2024 · 0 comments
Open

Comments

@balayanv
Copy link

In most projects one often needs a wrapper type that can carry one message from set of predefined types.
In all codecs where this is not supported people end up doing this in code (writing an int, and mapping that int to a type etc...)

Was there some fundamental reason for SBE not to have this? maybe its some sort of anti pattern...

I'd imagine that things like event logs in event sourced systems are streams of wrapper types that can carry many different types of messages rather than one type with bunch of optional fields...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant