2 ms·
Tangential to the author's point, but in Elixir, documentation can literally be code - typically function usage examples that are checked along with other tests
by dns_snek 3y ago
Tangential to the author's point, but in Elixir, documentation can literally be code - typically function usage examples that are checked along with other tests. It's a feature I wish other languages had.
https://hexdocs.pm/elixir/1.16.0/docs-tests-and-with.html#doctests https://hexdocs.pm/elixir/1.16.0/docs-tests-and-with.html#do...