note 118423 rejected from migration70.incompatible by cmb

From: Date: Fri, 22 Jul 2016 18:05:11 +0000
Subject: note 118423 rejected from migration70.incompatible by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-206074@lists.php.net to get a copy of this message
Note Submitter: jdbradbury at gmail dot com ---- 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?

« previous php.notes (#206074) next »