Refer To A Module Within Itself
Elixir comes with the __MODULE__
reserve word for referencing a module within itself. This is handy for things like structs.
You can use an alias in order to ditch __MODULE__
and perhaps make your code a bit more human readable.
Last updated