I also am not in favour of the syntax, it's too short and quirky. I'm
honestly fine with 'function()' it's very explicit


On Tue, Feb 19, 2013 at 1:20 PM, Anthony Ferrara <ircmax...@gmail.com>wrote:

> Marcello,
>
>
> On Tue, Feb 19, 2013 at 7:57 AM, Marcello Duarte <mdua...@inviqa.com>
> wrote:
>
> > Inspired by Sara, here is another RFC, I finally got around to draft:
> >
> > https://wiki.php.net/rfc/short-syntax-for-anonymous-function
> >
> > Please feedback,
> > --
> > Marcello Duarte
> >
> >
> I like the concept. I dislike the syntax. It looks too much like a JSON
> object declaration, and it feels like it should be returning an object
> instead of a closure/anonymous function. Additionally, I don't like that
> it's also a closure. Short functions like this should be for simple
> functions...
>
> Perhaps:
>
> lambda $x: trim($x);
>
> $x: trim($x);
>
> Or something similar...
>
> Anthony
>

Reply via email to