krakjoe / ustring

UnicodeString for PHP7
Other
64 stars 7 forks source link

Exposing php_ustring_backend as the C API #11

Closed datibbaw closed 10 years ago

datibbaw commented 10 years ago

Instead of having yet another API definition sit on top of php_ustring_backend, allow other C code to use it directly.

This is up for discussion.

hikari-no-yume commented 10 years ago

+1, one less layer of indirection

krakjoe commented 10 years ago

Nooooo

datibbaw commented 10 years ago

What Joe really meant was:

the UString extension uses the frontend api because that's what other extensions are expected to do, we might change something at the backend, the frontend has to remain stable and simple ...

it's a bit more complex for us, but, it's only once, and it creates a stable api, no matter what decisions we make for the backend

krakjoe commented 10 years ago

Yeah, sorry, I had just woken up, and intended to explain in chat ... which I did ...