Skip to content

Commit

Permalink
Add sentence noting "principle of least surprise" as suggested by Tyler
Browse files Browse the repository at this point in the history
  • Loading branch information
seberg committed May 25, 2022
1 parent d752b0c commit 7836a8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/neps/nep-0050-scalar-promotion.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ But the following will then be a surprise::

np.array([100], dtype=np.uint8) + 200 == np.array([44], dtype=np.uint8)

Considering this, we believe that the proposal follows the "principle of least
surprise".


Usage and Impact
================
Expand Down

0 comments on commit 7836a8b

Please sign in to comment.