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
While responding to feedback on PR #937 I changed the math:is-inf command to accept a &sign option. I was surprised by two things:
I could pass invalid values to the option. In this instance the option should only allow integers (or perhaps float64). Passing an invalid number caused the value to be silently ignored and the default was used instead.
I could specify invalid options. This is true for other builtins that accept options; e.g., echo &sep=: &argle=bargle abc def silently ignores the unexpected &argle option.
The text was updated successfully, but these errors were encountered:
While responding to feedback on PR #937 I changed the
math:is-inf
command to accept a&sign
option. I was surprised by two things:I could pass invalid values to the option. In this instance the option should only allow integers (or perhaps float64). Passing an invalid number caused the value to be silently ignored and the default was used instead.
I could specify invalid options. This is true for other builtins that accept options; e.g.,
echo &sep=: &argle=bargle abc def
silently ignores the unexpected&argle
option.The text was updated successfully, but these errors were encountered: