Re: PHP 7 API naming conventions: str vs string
| From: | Sara Golemon | Date: | Sun, 04 Jan 2015 00:57:15 +0000 |
| Subject: | Re: PHP 7 API naming conventions: str vs string | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80132@lists.php.net to get a copy of this message | ||
On Sat, Jan 3, 2015 at 3:42 PM, Nikita Popov <nikita.ppv@gmail.com> wrote:
> Or maybe be more explicit and use "cstr" for C strings. (For symmetry the
> zend_string type could become zstr.)
>
I personally prefer cstr/zstr for explicitness, but agree that the
main focus should be consistency.
-Sara
And yes, the fact that smart_string deals with char* while smart_str
deals with zstring, but smart_str used to be the char* API. That's a
big bucket of clown.