Programmatically Optional Param/Field #2649
fairbanksscales-dev
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Have a way to make one parameters/field optionality determined by a known value/values being passed into the method signature or set on that class's fields. This would allow you tell the user of your functions/classes of dynamically defined parameters/fields. This will prevent optional value being regarded as well it is always optional when in actual practice it is only optional when the param foo is not set to "bar" if foo is set to "bar" then silly needs to be set to lets say an integer. You could get really crazy with it and allow for different type checks for different values of the controlling parameters/fields.
Beta Was this translation helpful? Give feedback.
All reactions