Recommand exception instead of NaN and Infinity
| From: | 251099795 | Date: | Fri, 16 Aug 2019 01:18:41 +0000 |
| Subject: | Recommand exception instead of NaN and Infinity | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-326885@lists.php.net to get a copy of this message | ||
I read that php integer type has NaN and Infinity,
https://www.php.net/manual/en/language.types.integer.php
I don’t think this make sense. Maybe throwing exceptions when NaN and Infinity is a better and
simple solution.
Simple is very important for a programming language.