Re: New package: Functional PHP
| From: | Pierre Joye | Date: | Fri, 10 Jun 2011 13:53:23 +0000 |
| Subject: | Re: New package: Functional PHP | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-8350@lists.php.net to get a copy of this message | ||
hi Lars,
On Thu, Jun 9, 2011 at 8:06 PM, Lars Strojny <lars@strojny.net> wrote:
> Good evening everybody,
>
> 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“.
I like the concept :)
About the structure of the code. I'm not sure how to deal with package
with a non standard source tree structure. I wonder if it could be
better to put the exts in the root and keep the PHP code in
subdirectories, doing so will avoid us the work to support every 2nd
directory structure one would like to have (pecl website and automatic
builds of extensions). It should also be possible to put only the
config.* in the root.
The 2nd possible is phpunit for the extension itself, would it be
possible to implement the tests using phpt instead? No dependency,
standard at php.net and easy to automate testing on our various
platforms.
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org