Skip to content

Create separate views for version-specific accessors #47

@BjoernPetersen

Description

@BjoernPetersen

RFC 9562 introduced new UUID versions. Even with the introduction of just v6 UUIDs into the package, representing their semantics using common accessors has become difficult. Though offering a time accessor for v4 UUIDs has never made much sense.

We should introduce version-specific views on a UUID with the accessors that make sense for that version. Of course accessors like variant and version should remain common for all UUIDs.

To remain backwards-compatible, the existing accessors should merely be deprecated for now, directing users to migrate to the new view types.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions