-
Notifications
You must be signed in to change notification settings - Fork 56
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
Lack of Must / New on API #17
Comments
Hi! Thanks for suggestion. Personally, I think we could add
Overall, I like the suggestions and find the naming better than what we have now. In version 2 we could have:
I will think through it but I think that introducing version 2 with ⬆️ changes might actually make sense. |
Is it acceptable to make |
Add MustGenerate and MustID functions that panic on error instead of returning it. Fixes: #17
Add MustGenerate and MustID functions that panic on error instead of returning it. Fixes: #17
Hello!
I'm migrating from Google's UUID Package, and there is an specific detail that I find odd: the lack of
Must
and/orNew
on the API. These two functions are useful when you're quickly prototyping or when you DO want the entire world to blown up in case of errors.These two functions have the following signature:
Is this feature acceptable? If so, I already made the changes locally on my machine and can send you a PR.
The text was updated successfully, but these errors were encountered: