Re: New package: Functional PHP
| From: | Gustavo Lopes | Date: | Fri, 10 Jun 2011 00:46:22 +0000 |
| Subject: | Re: New package: Functional PHP | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-8336@lists.php.net to get a copy of this message | ||
On Thu, 09 Jun 2011 19:06:19 +0100, Lars Strojny <lars@strojny.net> wrote:
I would like to propose a new package for PECL, Functional PHP. It provides a number of functions for functional’ish programming like map(), invoke(), reduce_left(), reduce_right() and so on. License is BSD, code is available at https://github.com/lstrojny/functional-php/. Proposed name would be „functional“.Overall, I really like the idea, but the completely over-the-top usage of macros (not only macros, but non-obvious flow control macros) makes it look like it's not written in C at all and is really a put-off. I'd be neutral on the proposal. (By the way, it's encouraged to use PHP_ macros instead of ZEND_ macros whenever they exist; see PHP_FUNCTION). -- Gustavo Lopes