Re: Re: [RFC] [VOTE] Short Closures
| From: | Julien BENOIT | Date: | Thu, 24 Sep 2015 07:03:44 +0000 |
| Subject: | Re: Re: [RFC] [VOTE] Short Closures | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-88463@lists.php.net to get a copy of this message | ||
Hi,
As a PHP developer, I agree with the possible confusion between
-> and
~>.
==> is a better choice IMHO, for its similarity with Hacklang syntax, as
said previously.
Thanks.
*Julien BENOIT*
*PHP & JS developer @GuestToGuest <https://twitter.com/GuestToGuest>*
Paris, FR.
blog.julienbenoit.net
<http://fr.linkedin.com/in/jbenoit2011>
<http://www.viadeo.com/profile/0021vk9j4z60jp63/>
<https://github.com/jbenoit2011>
2015-09-24 8:39 GMT+02:00 Marco Pivetta <ocramius@gmail.com>:
> Changed my vote to "no" after thinking further into it:
>
> - I don't like the usage of the tilde: -> and
> ~> are too similar and
> easily confused
> - Using ==> would align PHP further to hacklang, which is a
> plus
> - I'm still conflicted on automatically importing all of the scope into
> the closure: while it is working for functional languages, that's where
> most of the headaches come from in languages such as javascript.
>
> Marco Pivetta
>
> http://twitter.com/Ocramius
>
> http://ocramius.github.com/
>
> On 24 September 2015 at 14:27, Pierre Joye <pierre.php@gmail.com> wrote:
>
> > On Sep 22, 2015 10:16 PM, "Andrea Faulds" <ajf@ajf.me> wrote:
> > >
> >
> > > I am unhappy with the ~> syntax choice. As I've mentioned before, it's
> > hard to type for many people, it looks too much like ->, and it's
> > unnecessarily different from Hack's ==>, of which this RFC would
> otherwise
> > be proposing a strict subset.
> > >
> > > So, I am voting against.
> >
> > Same reason here.
> >
> > Thanks,
> > Pierre
> >
>