Replies: 2 comments 3 replies
-
If anything, that should be a post-MVP experimental feature. Currently, |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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:
Beta Was this translation helpful? Give feedback.
All reactions