-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add Comparison operator to UUID #11352
Conversation
UUIDs are comparable according to RFC 4122. This implements the comparison according to the spec.
I would point out that if StaticArray is gonna end up being comparable, this can be cleaned up even more by comparing the arrays. |
I dont see the comparable part in the RFC. What section is it in? |
A use case is described in #11023 (comment) |
|
Implementations section page 24 has a code example of UUID compare |
According to RFC 4122, UUIDs are comparable. This implements the spaceship operator on UUIDs according to the specification.
Implements #11023