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
Have an option to declare default traits to be applied to every parameter in this scope.
# Turn on coercion and make all parameters read only aliases.
use Method::Signatures { traits => { "coerce", "ro", "alias" } };
Use cases include turning on type coercion or making all parameters read-only.
Care must be taken because some traits are the opposites of the other. In the above example, you'd want "is rw" to override the default read only trait. Or you'd want "is copy" to override the default alias trait.
The text was updated successfully, but these errors were encountered:
Have an option to declare default traits to be applied to every parameter in this scope.
Use cases include turning on type coercion or making all parameters read-only.
Care must be taken because some traits are the opposites of the other. In the above example, you'd want "is rw" to override the default read only trait. Or you'd want "is copy" to override the default alias trait.
The text was updated successfully, but these errors were encountered: