note 118423 added to migration70.incompatible
| From: | jdbradbury at gmail dot com | Date: | Thu, 03 Dec 2015 23:36:58 +0000 |
| Subject: | note 118423 added to migration70.incompatible | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204272@lists.php.net to get a copy of this message | ||
I like that divide by Zero now throws an exception, however returning 3 different possible values
seem's incredibly wrong.
Why not simply NaN and 3 slightly different exceptions? That seems like the way most people would
use this (if it gets used at all). I don't think anyone is ever planning on operating with
NaN/INF+/INF- variables and if they are testing, they are likely testing for all 3 at the same time.
However, we may want to use a different error based on those results.
Isn't this is a fairly significant tangent away from other similar languages?
----
Server IP: 72.52.91.14
Probable Submitter: 207.173.26.13
----
Manual Page -- http://php.net/manual/en/migration70.incompatible.php
Edit -- https://master.php.net/note/edit/118423
Del: integrated -- https://master.php.net/note/delete/118423/integrated
Del: useless -- https://master.php.net/note/delete/118423/useless
Del: bad code -- https://master.php.net/note/delete/118423/bad+code
Del: spam -- https://master.php.net/note/delete/118423/spam
Del: non-english -- https://master.php.net/note/delete/118423/non-english
Del: in docs -- https://master.php.net/note/delete/118423/in+docs
Del: other reasons-- https://master.php.net/note/delete/118423
Reject -- https://master.php.net/note/reject/118423
Search -- https://master.php.net/manage/user-notes.php