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

UUID coercion #145

Open
kjetilk opened this issue Nov 21, 2019 · 1 comment
Open

UUID coercion #145

kjetilk opened this issue Nov 21, 2019 · 1 comment

Comments

@kjetilk
Copy link
Contributor

kjetilk commented Nov 21, 2019

There's already a Types::UUID type, but it builds on UUID::Tiny, while Attean uses the more advanced Data::UUID, and I suppose it might not be a good thing to change that.

It is a nice to have feature, it generates a urn:uuid: URI, but I'm not sure how we should best do it. Attean could have its own Uuid type, I suppose, and add a coercion between that and @tobyink 's type. Or it might be better solutions. Possibly worth discussing.

@tobyink
Copy link
Contributor

tobyink commented Nov 21, 2019

Data::UUID and UUID::Tiny pretty much do the same thing. Data::UUID might be a little faster because it's XS, but I really doubt UUID generation is a performance bottleneck for many real life apps.

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

2 participants