Elegant solution for constants?

Give @sasajuric 's method a try.

IMO, it’s simple and powerful.


You can also try some packages, like GitHub - jcomellas/ex_const: Constants and Enumerated Values for Elixir

2 Likes