43 ms·
As an aside; I've been playing with rust and it's built-in documentation solution has an interesting quality to it. Code snippets in documentation are compiled
by Joof 11y ago
As an aside; I've been playing with rust and it's built-in documentation solution has an interesting quality to it. Code snippets in documentation are compiled and can be tested at compile time.
It's one excellent way to ensure that updates that necessitate a change in documentation actually get documented.
- rbanffy 11y agoI love using doctests in my Python code. They can't replace proper tests, but its great to be able to guarantee your docstrings are correct.