Skip to content

comparison of Uuids #3

@WestleyArgentum

Description

@WestleyArgentum
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions