Building web applications without a framework Dress up your stdout

Using enums like C, Rails with Elixir macros

Moving from Ruby on Rails to Elixir and Phoenix, we use enums idioms heavily to represent integer flag values. Elixir (or ecto library) does not support idiom enums. But using macros, we can create enums easily.

Using enums in Elixir