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

split variant into variant and optional #28

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

jeffro256
Copy link

This PR lets us reap the benefit of "optional variants" when we want to have the ability to not have a value with the optional_variant, but also we don't have to deal with null cases when we don't want to (which is almost all cases). Null cases are particularly annoying when it comes to dealing with serialization and de serialization. It also makes writing rigid types harder and messier.

Copy link
Owner

@UkoeHB UkoeHB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm definitely not excited about inheritance, but I see your point.

@UkoeHB UkoeHB merged commit a124b29 into UkoeHB:seraphis_lib Feb 16, 2024
16 of 18 checks passed
@jeffro256 jeffro256 deleted the variant_no_blank branch February 16, 2024 21:11
jeffro256 added a commit to jeffro256/monero that referenced this pull request Feb 17, 2024
UkoeHB pushed a commit that referenced this pull request Mar 6, 2024
UkoeHB pushed a commit that referenced this pull request Aug 2, 2024
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

Successfully merging this pull request may close these issues.

2 participants