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

EnumType? #181

Open
nelsonic opened this issue Oct 14, 2022 · 2 comments
Open

EnumType? #181

nelsonic opened this issue Oct 14, 2022 · 2 comments
Labels
discuss Share your constructive thoughts on how to make progress with this issue enhancement New feature or enhancement of existing functionality help wanted If you can help make progress with this issue, please comment! technical A technical issue that requires understanding of the code, infrastructure or dependencies

Comments

@nelsonic
Copy link
Member

Has anyone used EnumType? ❓
https://hexdocs.pm/enum_type/readme.html

Generates Enumerated type modules 
that can be used as values and matched in code. 
Creates proper types so Dialyzer will be able to check bad calls.

https://hex.pm/packages/enum_type seems like a few people/projects are using it ... 📈
image

https://github.com/onboardingsystems/enum_type
image

Thinking of trying it for a feature: dwyl/auth#220 🧑‍💻
But wondering if there is a "standard" way of doing this now in latest Elixir ... 💭

@nelsonic nelsonic added enhancement New feature or enhancement of existing functionality help wanted If you can help make progress with this issue, please comment! discuss Share your constructive thoughts on how to make progress with this issue technical A technical issue that requires understanding of the code, infrastructure or dependencies labels Oct 14, 2022
@ndrean
Copy link
Contributor

ndrean commented Oct 14, 2022

Again for my little app🙂 I just used Ecto.Enum

@nelsonic
Copy link
Member Author

We've used Ecto.Enum in past projects; good shout. 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Share your constructive thoughts on how to make progress with this issue enhancement New feature or enhancement of existing functionality help wanted If you can help make progress with this issue, please comment! technical A technical issue that requires understanding of the code, infrastructure or dependencies
Projects
None yet
Development

No branches or pull requests

2 participants