RE: [PHP-DEV] PATCH: anonymous functions in PHP
| From: | Andi Gutmans | Date: | Mon, 19 Mar 2007 22:22:54 +0000 |
| Subject: | RE: [PHP-DEV] PATCH: anonymous functions in PHP | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-28465@lists.php.net to get a copy of this message | ||
Why would this pollute less? It would still pollute the namespace.
> -----Original Message-----
> From: Lukas Kahwe Smith [mailto:mls@pooteeweet.org]
> Sent: Monday, March 19, 2007 3:08 PM
> To: Stas Malyshev
> Cc: Andi Gutmans; Robert Cummings; Wez Furlong; Sean Coates;
> internals@lists.php.net
> Subject: Re: [PHP-DEV] PATCH: anonymous functions in PHP
>
> Stanislav Malyshev wrote:
>
> >> Thoughts?
> >
> > This might work, still not sure if we really want that in
> PHP. On one
> > side, it's cool, on other side closures can develop into a
> very messy
> > code :)
>
> Yeah well .. for the single task of callbacks they are great
> and prevent a lot of messiness .. I think its messy to
> pollute the namespace for something which is not intended for
> reuse .. maybe we need to artificially limit its uses just
> like for "goto".
>
> regards,
> Lukas
>