Skip to content

RFC: UUID (Namespaced) #2547

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 66 commits into from
Closed

RFC: UUID (Namespaced) #2547

wants to merge 66 commits into from

Conversation

Fleshgrinder
Copy link
Contributor

@Fleshgrinder Fleshgrinder commented May 29, 2017

This is the proposed variation of #2535 with both classes in the PHP\Std namespace (the one I personally would prefer, but the namespace if of course a decision of internals and not of me).

Please refer to the UUID RFC for more information, and be sure to post any comment directly on #2535 unless they are about the namespace.

The macro was expanding to a wrong macro and thus leads to compile errors upon
usage. Changed it to expand to the correct macro, and added Doxygen
documentation to help new users.
Thanks Visual Studio ;(
Thanks Visual Studio ;(
This I did due to a comment by nikic about having them in the header is actually uselus. It required that I move the MINIT function to the bottom of the c file, otherwise the routines are undefined because the compiler cannot find them anymore.
There already is the `zend_parse_parameters_throw` function which does exactly the same thing in a consistent and standard way. This is much, much better. Many thanks to @nikic for pointing that out.
This is now handled by the default PHP implementation. No custom logic means that this is covered by other tests.
Duplicated all type information to ensure compatibility among different PHPDoc implementations. Also reverted `@returns` back to `@return` (this was a typo in an earlier search-replace).
External linking does not seem to make much sense for constant values.
There is not need to allocate the namespace and nil for the complete duration of the program, they are used occassionaly only. Also created macros for the named constructors and getting of the current UUID. This makes the code less readable, but much easier to change.
Also removed the macros again and exchanged them with proper functions. They are simply better in every way, and should be properly inlined by the compiler as well anyways.
@Fleshgrinder Fleshgrinder mentioned this pull request May 29, 2017
@krakjoe krakjoe added the RFC label May 30, 2017
@Fleshgrinder
Copy link
Contributor Author

I’m withdrawing this PR. The topic about namespaces in core is to complicated and I do not plan on trying to pursue it any further.

@Fleshgrinder Fleshgrinder deleted the rfc/uuid-namespaced branch August 20, 2017 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants