Replies: 2 comments 3 replies
|
If anything, that should be a post-MVP experimental feature. Currently, |
1 reply
|
Something that would be useful is for Perl to gain something analogous to a strict mode such that all the built-in operators and routines effectively have checks defined for their parameters, so that for example passing a string to numeric addition will error rather than coerce. These would not be user-defined alterations to built-ins, but rather ones defined by Perl itself, which are opt-in for backwards compatibility reasons. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
If checks are going to be part of core and used with non-checked CPAN libraries, there should be a way to define checks on those externally. A few examples from other systems:
All reactions