Re: Allowing NULL for some internal functions
| From: | Mark Randall | Date: | Mon, 28 Feb 2022 11:28:09 +0000 |
| Subject: | Re: Allowing NULL for some internal functions | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-117160@lists.php.net to get a copy of this message | ||
On 28/02/2022 01:46, Craig Francis wrote:
Personally I think strict_types=1 is fine for my code, but I would never
want to force that style on everyone, because doing so would be fairly
hostile for a language that's popular and well known for being easy to
use/learn.
Magically coercing things and hiding things under the hood is useful for the first 10 minutes of learning.
After that it just becomes a hindrance difficult because you have to know all of the secret rules about type juggling.