dwyl / learn-elixir

:droplet: Learn the Elixir programming language to build functional, fast, scalable and maintainable web applications!
1.6k stars 107 forks source link

`EnumType`? #181

Open nelsonic opened 1 year ago

nelsonic commented 1 year ago

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: https://github.com/dwyl/auth/issues/220 🧑‍💻 But wondering if there is a "standard" way of doing this now in latest Elixir ... 💭

ndrean commented 1 year ago

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

nelsonic commented 1 year ago

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