One of the point you were asking:
- How to make this code more idiomatic
So I just pointed to what seemed more idiomatic to me ![]()
Based on a suggestion in another thread I tried
#{__MODULE__}, but that outputsElixir.Codeownerswhen I run mix docs.
So it does with any module name, such as: #{Logger} would print "Elixir.Logger". If you want to nicely disregard the prefix Elixir. you could inspect/1 it:
"#{inspect(__MODULE__)}"
See example: elixir/lib/elixir/lib/kernel/utils.ex at c5816a227f5ad295ccbfcc5571308f76190d6bfe · elixir-lang/elixir · GitHub


















