Hacker News new | ask | show | jobs
by readline_prompt 616 days ago
Doctests are great aren't they?
1 comments

IDK, they sound like they overflow the "maximum code" counter and land up straight in the literate programming land. I wonder how far you could go writing your whole program as doctests spliced between commentary.
Doctests are tests they are not part of a release build. Also I don't believe there is a supported way to access code in doctests from the outside.

So (sadly?) no literate programming