Re: [RFC] Add true as type

From: Date: Fri, 08 Apr 2022 21:39:39 +0000
Subject: Re: [RFC] Add true as type
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-117504@lists.php.net to get a copy of this message
Den 2022-04-08 kl. 18:47, skrev G. P. B.:
Hello internals, I would like to open the discussion on the RFC to add true as a type. https://wiki.php.net/rfc/true-type Now that null and false can be used as standalone types, I think it makes a lot of sense to add true as a value type for the sake of completeness with false. It also has many use cases within internals and userland to declare proper type signatures to functions and methods. Best regards, George P. Banyard Finally, I have been waiting for this :) Two comments:
- Would be nice to have an example / UC that shows the value of true as a type in the RFC. - Should one have a link to the earlier discussion about this type, either in the RFC or in the announcement on the internals list? Regards //Björn

« previous php.internals (#117504) next »