3 ms·
Doctests are indeed a great format for documentation. They are automatically checked for currentness/correctness, aren't ambiguous like natural language and are
by jampekka 2y ago
Doctests are indeed a great format for documentation. They are automatically checked for currentness/correctness, aren't ambiguous like natural language and are close to the implementation.
But I have the feeling that doctests aren't seen as documentation the way that is often desired in the documentation discussions.