dwyl/learn-elixir

`EnumType`?

オープン

#181 opened on 2022/10/14

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Elixir (113 件のフォーク)batch import
discussenhancementhelp wantedtechnical

Repository metrics

Stars
 (1,695 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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 ... 💭

コントリビューターガイド