Skip to content
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

comparison of Uuids #3

Open
WestleyArgentum opened this issue Nov 26, 2013 · 0 comments
Open

comparison of Uuids #3

WestleyArgentum opened this issue Nov 26, 2013 · 0 comments

Comments

@WestleyArgentum
Copy link
Member

julia> using UUID

julia> a = UUID.v4()
Uuid('fb934355-a175-4b7c-8160-c27bc2d16abc')

julia> a == a
true

julia> s = string(a)
"fb934355-a175-4b7c-8160-c27bc2d16abc"

julia> UUID.Uuid(s)
Uuid('fb934355-a175-4b7c-8160-c27bc2d16abc')

julia> a == ans
false

Seems a little weird to me. As an aside, it would be cool if we could write the proper convert functions, so that things like a = UUID.v4(); a == string(a) would work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant