RE: [PHP-DEV] Ten years estimate d Plan to replace PHP’s inconsis tent API

From: Date: Sun, 22 Mar 2015 10:50:02 +0000
Subject: RE: [PHP-DEV] Ten years estimate d Plan to replace PHP’s inconsis tent API
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-85408@lists.php.net to get a copy of this message
>De : Nathan wesley [mailto:nathan.o.wesley@gmail.com] > > 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 ! What I meant is that we need a syntax that allows unambiguous parameter order and chained calls but we probably shouldn't use the '->' operator for scalars. The main reason is that it would make code harder to understand, but there are other reasons (like function receiving object arguments). Regards François

« previous php.internals (#85408) next »