Re: [Discussion] Callable types via Interfaces
| From: | Deleu | Date: | Fri, 21 Apr 2023 03:56:54 +0000 |
| Subject: | Re: [Discussion] Callable types via Interfaces | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120095@lists.php.net to get a copy of this message | ||
On Thu, Apr 20, 2023 at 8:23 PM Levi Morrison via internals <
internals@lists.php.net> wrote:
> I'm going to stop here. Two big things:
>
> 1. I think reducing verbosity can be left for the future. We don't
> have to solve that right now.
>
What happens if I pass a short-closure?
>
> takeTwo(fn ($x, $y) => $x + $y);
>
> I would be annoyed if I had to write the type info, but particularly
> the return type.
>
Sorry for the unhelpful email, but does anybody else see the irony here?
It's just too funny to not be mentioned 😂😂😂😂
--
Marco Deleu