Ticket #1298 (closed RFC: wontfix)
opcodes, warnings, and exceptions
Reported by: | particle | Owned by: | whiteknight |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | core | Version: | |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: |
Description
the api for opcodes needs review, especially with regard to the response to exceptional behavior. for example, the documentation for B<length> in src/ops/string.ops reads:
=item B<length>(out INT, in STR) Set result $1 to the length (in characters) of string $2. If $2 is NULL or zero length, zero is returned.
however, if a null string is passed in to length, the user should get some notification of an exceptional condition. *at least* a warning, and possibly a fatal exception.
~jerry
Change History
Note: See
TracTickets for help on using
tickets.