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.
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.