Re: [PEPr] Changes in proposal for Streams::Stream_Iterate
| From: | Philippe Jausions | Date: | Wed, 14 May 2008 15:06:07 +0000 |
| Subject: | Re: [PEPr] Changes in proposal for Streams::Stream_Iterate | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-50114@lists.php.net to get a copy of this message | ||
Hi All,
Philippe Jausions wrote:
> Philippe Jausions (http://pear.php.net/user/jausions) has edited the proposal for
> Streams::Stream_Iterate.
>
> Change comment:
>
> * Updated callback API, now also passing iteration counter,
> * Added onFirst and onLast callbacks for pre and post stream content,
> * Dropped support for method calls,
> * Renamed "callback" parameter to "toString",
> * Updated regression tests,
> * Added a formatter interface,
> * Dropped the stream registration methods.
> * Added use case examples with XML output, formatter class, and GZIP.
>
> Please review the proposal:
> http://pear.php.net/pepr/pepr-proposal-show.php?id=536
Before I call for vote on this proposal, does anyone have any comments
regarding the package name? Just to be clear, the package takes any
traversable variable and "stuff it" into a stream by iterating over each
key/value pair and converting it into a string via callbacks.
On a side note, does anybody have any suggestions on how to make
interfaces less prone to namespace conflicts. Since PHP cannot alias
interface methods, there is a big risk on having 2+ interfaces with
methods with the same names. And we don't currently have any index of
all the interfaces in PEAR (and PHP).
-Philippe