Re: [RFC] Union Types v2
| From: | Peter Bowyer | Date: | Wed, 04 Sep 2019 11:45:43 +0000 |
| Subject: | Re: [RFC] Union Types v2 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-106850@lists.php.net to get a copy of this message | ||
On Wed, 4 Sep 2019 at 12:30, Arnold Daniels <arnold.adaniels.nl@gmail.com>
wrote:
> Instead of using
__toString as type maybe it's better to
> introduce a
> Stringable interface, similar to how
> __wakeup and __sleep are already
> superseded by Serializable.
I support that. I don't like the naming in string|__toString.
string|Stringable is more readable IMO.
Peter