28 March 2022

TIL: Elixir doctests support import: true

TIL Elixir’s doctests support an import: true flag so that you don’t have to write out the full module name in your doctests.

Super useful! I can’t tell you how many times my doctests have all started App.Context.Module.Submodule.func(...)!


Programming Elixir Today I Learned (TIL)