rossriley / php-scalar-objects

Experimental API for PHP Scalar Objects
70 stars 6 forks source link

Arrays and Nulls plural; other objects singular #1

Closed alexekorn closed 10 years ago

alexekorn commented 10 years ago

Any reason for this?

If not, especially since this project is all about consistency, all should be either singular or plural (probably singular).

rossriley commented 10 years ago

Well spotted, yes, Array and Null are both protected keywords so can't be used as class names.

alexekorn commented 10 years ago

That totally makes sense.

I just realized how register_primitive_type_handler() from nikic's scalar_objects works, so given that you don't actually need to use those names directly, doesn't really matter.