Re: [RFC] $this return type
| From: | Sebastian Bergmann | Date: | Tue, 07 Sep 2021 13:27:37 +0000 |
| Subject: | Re: [RFC] $this return type | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-115994@lists.php.net to get a copy of this message | ||
Am 07.09.2021 um 12:28 schrieb Nikita Popov:
I have some reservations about this (which basically come down to $this not being a proper "type", so should it be in the type system?) but I can see the practical usefulness, so I think it's worth discussing this.I am not conviced that there is enough value in this to introduce syntax for it, but if at all, then please not "$this" as the name for a type. Off the top of my head, I think that "same" could make sense.