Create feature flag for enabling expandPartialFromOptionToNonOption #322
Labels
breaking change
Change resulting in compilation errors of code that used to be considered correct, or linking errors
enhancement
TLDR: The user should explicitly enable a feature flag to enable derivation using
expandPartialFromOptionToNonOption
.In the current situation, a user has two options:
It would be nice to have some middle ground, where if we don't explicitly enable a feature flag, the following results in a compilation error:
This may seem obvious in a simple example, but in more complicated code while refactoring if let's say
x
is changed fromT
toOption[T]
, the compiler no longer makes you think about maybey
should beOption[T]
as well.The text was updated successfully, but these errors were encountered: