Re: Add $this return type
| From: | Marco Pivetta | Date: | Tue, 25 Jun 2024 21:47:24 +0000 |
| Subject: | Re: Add $this return type | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-123847@lists.php.net to get a copy of this message | ||
On Tue, 25 Jun 2024 at 23:25, Juliette Reinders Folmer <
php-internals_nospam@adviesenzo.nl> wrote:
> Also don't really see the need as there is the
static
> return type
> already.
>
I'd see it as useful if the type conveyed identity too, although it also
means that I would never use it, since I design immutable APIs, when
possible :D
Marco Pivetta
https://mastodon.social/@ocramius
https://ocramius.github.io/