3 ms·
Sometimes that's not always a choice. OpenGL uses the same check for error pattern.
by xxpor 14y ago
Sometimes that's not always a choice. OpenGL uses the same check for error pattern.
- masklinn 14y agoOpenGL is a C API. This is an acceptable pattern for a language at the level of C, without such features as exceptions, multiple return values or sum types. Which is not the case of PHP, which has both multiple return values (kind-of) and exceptions, and had them long before the json* functions where added.