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
store_into captures the default value at the time it is called, rather than at parse time. This arrangement ignores the default argument if default_value is called for an argument after store_into. IMO setting a value with the default argument should be deferred into the args are parsed and it is clear that there is no argument provided that would otherwise be associated with the provided default. This doesn't seem to be documented and is easy to get wrong.
I'm happy to take a stab at fixing if this isn't by design.
The text was updated successfully, but these errors were encountered:
store_into captures the default value at the time it is called, rather than at parse time. This arrangement ignores the default argument if default_value is called for an argument after store_into. IMO setting a value with the default argument should be deferred into the args are parsed and it is clear that there is no argument provided that would otherwise be associated with the provided default. This doesn't seem to be documented and is easy to get wrong.
I'm happy to take a stab at fixing if this isn't by design.
The text was updated successfully, but these errors were encountered: