Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
readline_prompt
· 2y ago · 0 comments
Doctests are great aren't they?
Comments
[–]
TeMPOraL
2y ago
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.
[–]
phi-go
2y ago
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