You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is a questionable value. We should ask the user of the library to handle the insane value but not refuse them the ability to still set it. So an API would look like this
Produces the same reference, so setters can be chained.
Produces the ConfigurationBuilder with the insane value set via compromised_value.
Is still an error, so we have the option to halt, forward and ignore (as here).
Motivation
The earlier we catch an error, the easier it is to handle. This approach forces the user to be aware that not all values are acceptable, and to handle the check in Rust-y way.
Feature request
We should add fallible setters as configuration builder value sanity checks.
Example:
is a questionable value. We should ask the user of the library to handle the insane value but not refuse them the ability to still set it. So an API would look like this
ConfigurationBuilder
with the insane value set viacompromised_value
.Motivation
The earlier we catch an error, the easier it is to handle. This approach forces the user to be aware that not all values are acceptable, and to handle the check in Rust-y way.
Who can help?
@appetrosyan
The text was updated successfully, but these errors were encountered: