rfc:clamp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:clamp [2021/07/03 14:35] – Add NAN behaviour thinkverserfc:clamp [2023/06/12 13:59] (current) – withdrawn thinkverse
Line 3: Line 3:
   * Date: 2021-06-23   * Date: 2021-06-23
   * Author: Kim Hallberg, hallbergkim@gmail.com   * Author: Kim Hallberg, hallbergkim@gmail.com
-  * Status: Under Discussion +  * Status: Withdrawn 
-  * Proposed Version: PHP 8.1+  * Proposed Version: PHP 8.2
   * First Published at: http://wiki.php.net/rfc/clamp   * First Published at: http://wiki.php.net/rfc/clamp
  
Line 34: Line 34:
 </code> </code>
  
-Handling NAN; passing NAN to either of the range values will throw a TypeError since passing NAN will invalidate the range. Might throw ValueError instead of TypeError.* If NAN is passed to num, clamp will return float(NAN). +Handling NAN; passing NAN to either of the range values will throw above ''ValueError'' since passing NAN will invalidate the range.
- +
- +
-* Will change type if the exception isn't correct for this scenario.+
  
 ===== Backward Incompatible Changes ===== ===== Backward Incompatible Changes =====
rfc/clamp.1625322958.txt.gz · Last modified: 2021/07/03 14:35 by thinkverse