Am 02.09.17 um 09:01 schrieb Fleshgrinder: > Hello Internals! > > I just started the voting for the inclusion of a UUID value object in > PHP's core, targeting PHP 7.3. I wanted to start earlier, but was sick > the whole week. > > The voting is open starting now and until September 16. (2 weeks). > Hey Richard, Hey all.
Thanks for putting up the RFC and the implementation! Having UUIDs in the core would be awesome. One of the reasons would be that it's in C. That'd be faster but would also allow easier integration with system-calls to be easier able to get the MAC-Address for a type-1 UUID f.e. But why limit UUIDs to type 3 through 5? Having security in mind is good IMHO but not implementing type 1 and 2 limits the usability and therefore the usefullness. Let the users decide whether they need it or not. As long as people can create SQL-Injections in PHP we should not use the security argument to limit usability or not implement standardized functionality. Especially when there is a full-fledged reference-implementation in userland available. In the RFC you reference ramsey/uuid yourself. But why should one use the internal UUID-class/functionality when there is a more powerful one in userland available? And limiting the usability and extendability of the UUID-Class itself by declaring it final means that userland-code can only wrap the class but not extend it. So userland code can not typehint for the UUID-class when special features are necessary that would need extending the class. And as there's no interface, I can't typehint for that either. So all in all for me that's * less functionality than the reference-implementation * missing UUID-types (the ones that are easier to implement in C) * missing extendability and a naging feeling that the imlementation decides what I as a user actually need. That's why I can't vote "yes". Sorry. Thanks for putting in the effort and coming up with a first implementation. Cheers Andreas PS: Personally I don't like a "uuid_4_create" as that would also mean there should be a "uuid_1_create" through "uuid_5_create" as well and then there also would need to be a "uuid_1_verify" through "uuid_5_verify"… -- ,,, (o o) +---------------------------------------------------------ooO-(_)-Ooo-+ | Andreas Heigl | | mailto:andr...@heigl.org N 50°22'59.5" E 08°23'58" | | http://andreas.heigl.org http://hei.gl/wiFKy7 | +---------------------------------------------------------------------+ | http://hei.gl/root-ca | +---------------------------------------------------------------------+
signature.asc
Description: OpenPGP digital signature