Re: [RFC] Add true as type

From: Date: Wed, 20 Apr 2022 16:30:13 +0000
Subject: Re: [RFC] Add true as type
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-117550@lists.php.net to get a copy of this message
Hello internals, I've expanded on the RFC: https://wiki.php.net/rfc/true-type Please let me know if there are still aspects which need clarification. I will also say that I think enums are far superior to literal types, but only having false and not true is extremely weird to me (and in a pure type theoretical perspective I would have preferred to not even have false). The complexity of the implementation is also "trivial" because the PHP engine already considers true and false to be two different ZVAL types, whereas a complete literal type implementation is going to be way more complex and I doubt be far from efficient. Best regards, George P. Banyard

« previous php.internals (#117550) next »