On Feb 6, 2015 6:45 AM, "Rasmus Lerdorf" <ras...@lerdorf.com> wrote:
>
> On Feb 5, 2015, at 17:41, "guilhermebla...@gmail.com" <
guilhermebla...@gmail.com> wrote:
> >
> > Hi Rasmus,
> >
> > Thanks for the highlight.
> > My biggest concern about all this breakage done for NG could somehow be
minimized by providing possible alternate implementations that could work
both backwards compatible and forwards compatible?
> > I just don't want to work on extensions I support that would never be
usable in earlier versions once finished the update.
> >
> > Maybe it would be interesting to have samples of before/after (like you
did) and also samples of of compatibility pieces for PHP 7- and PHP 7+.
>
> That is one of the reasons an annotated diff would be good. All the
changes in the diff aren't strictly needed. I didn't need to change from
"s" to "S" in ZPP and the accompanying change to zend_string for example,
but I find the new API cleaner and less error-prone.

What do you think about the creation of an example extension covering
almost everything one would do in an extension?

The class, methods or functions do not have to be useful but to have simple
clear examples to display the differences with extensive comments.

Doing so has the big advantage of being self contained and anyone can
contribute easily. It is also easier for someone to actually play with it
than with a diff.

I was thinking about that for a workshop I have to give in April.

Cheers
Pierre

Reply via email to