UkoeHB / monero

Monero: the secure, private, untraceable cryptocurrency
https://getmonero.org
Other
7 stars 4 forks source link

split variant into variant and optional #28

Closed jeffro256 closed 7 months ago

jeffro256 commented 7 months ago

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.