Re: Ten years estimated Plan to replace PH P’s inconsistent API
| From: | Nathan wesley | Date: | Sat, 21 Mar 2015 13:42:59 +0000 |
| Subject: | Re: Ten years estimated Plan to replace PH P’s inconsistent API | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-85368@lists.php.net to get a copy of this message | ||
>
> I think that, while attractive, using the same syntax for object methods
> and scalar 'pseudo-'methods is too ambiguous. We just need to solve two
> issues : intuitive order of arguments and nested call readability. We don't
> need to implement the whole OO stuff for scalars. Except this detail, no
> limitation IMO.
>
>
if you're going to write API for string manipulation for example you want
it either Object Oriented or procedural style. because the API should be
fluent method chaining etc. you don't want to stop the chain and wrap it
with a function call. (just my opinion) these things needs to be discussed
if the internals are willing to do it. it will happen !
i'm completely sure the many developers will support the new API and all of
them are willing to help.
i wrote some code imagining that we have the new API. PHP will just be so
beautiful it will be a HUGE success.
Regards