Re: Consensus Gathering: is_initialized
| From: | Hossein Baghayi | Date: | Thu, 27 May 2021 23:38:28 +0000 |
| Subject: | Re: Consensus Gathering: is_initialized | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-114653@lists.php.net to get a copy of this message | ||
Out of curiosity,
Couldn't PHP raise an error when there is an uninitialized state left
unhandled after calling the constructor?
It might make the developer think of either providing a default value or
initializing it in the constructor.
Hence no uninitialized state.