Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
moritz
· 8mo ago · 0 comments
In the Elixir ecosystem (where documentation is considered a "first-class citizen" in the language), you can run code examples as part of your test suite in a similar fashion ("doctest"):
https://elixir-recipes.github.io/testing/doctests/
Comments
[–]
thangalin
8mo ago
> documentation is considered a "first-class citizen"
How exquisitely Knuthian!