Re: [RFC] First-class callable syntax

From: Date: Thu, 20 May 2021 15:55:05 +0000
Subject: Re: [RFC] First-class callable syntax
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-114536@lists.php.net to get a copy of this message
On Thu, May 20, 2021 at 5:12 PM Nikita Popov <nikita.ppv@gmail.com> wrote: > On Thu, May 20, 2021 at 4:16 PM Ondřej Mirtes <ondrej@mirtes.cz> wrote: > > > Hi, I’m confused by the syntax, when I read it, I think to myself “I know > > this, this is just a method call… oh wait, it’s actually a callable”. It > > really makes my head hurt. > > > > Yes, I can see how that could be confusing. The current syntax is chosen to > be a subset of the partial function application proposal. However, I would > also be happy with some other syntax that makes it clearer that this is > acquiring a callable and not performing a call. > Hi, several other syntaxes have been proposed to consideration in the PFA thread, and I wouldn't want to start new bikeshedding here; is there a place that would be more appropriate to gather the possibilities (like a kind of updatable list)? Thanks, -- Guilliam Xavier

« previous php.internals (#114536) next »