Re: I think that "Function naming inconsistency" bug deservers more attention
| From: | Clint Priest | Date: | Mon, 28 Jan 2013 12:06:10 +0000 |
| Subject: | Re: I think that "Function naming inconsistency" bug deservers more attention | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65236@lists.php.net to get a copy of this message | ||
On 1/28/2013 2:09 AM, Christian Stoller wrote:
In userland we can only do something like $str = new String('my_string_class'); echo $str->length(); But that's useless. It would be great if method calls on primitive types could be supported, like in Nikic' proof of concept (https://github.com/nikic/scalar_objects). $str = 'my_string_class'; echo $str->length(); I would really like to see that in PHP. It's not only a nicer and shorter way to code but it would also be a solution for the function naming inconsistency ;-)+1 from that, fortunately since it's an extension it won't be subject to a vote, you can use it or not. :) The core seems to be heavily protected by the core developers.
Best regards Christian -- -Clint