2007/12/22, Christian Seiler <[EMAIL PROTECTED]>:
>
> Hi,
>
> I was following this thread and came upon Jeff's posting on how closures
> could be implemented in PHP.
>
> Since I would find the feature to be EXTREMELY useful, I decided to
> actually implement it more or less the way Jeff proposed. So, here's the
> patch (against PHP_5_3, I can write one against HEAD if you whish):
>
> http://www.christian-seiler.de/temp/closures-php-5-3.patch
>

Hi,

I finally got some time to check out your patch (the first and the second
version). It looks cool, works as expected in most of the things I've tried.

Nevertheless, I don't need this feature, it doesn't provide any advantage
over the functor objects I've been using since long. Closures and anonymous
functions are harder to maintain and debug, and they are not as elegant as
their counterparts in functional languages (lambda functions). On the other
side, functor objects are more maintainable, scalable, elegant, and
versatile (and php already supports them... it could be improved though).

Bottom line, excellent work. If a considerable part of the php user base
need this, excellent, they have an implementation which seems viable. But,
sorry, I couldn't care less about closures or anonymous functions. Anyway,
my opinion doesn't matter, I'm just one user.

Best Regards,

Martin Alterisio

Reply via email to