Hacker News new | ask | show | jobs
by mijoharas 2016 days ago
obligatory "Rust docs can do this"[0] (quite a nice feature tbh).

[0] https://doc.rust-lang.org/rustdoc/documentation-tests.html

1 comments

Python can too, and I think most other languages are inspired by it.

https://docs.python.org/3/library/doctest.html

oh cool, didn't know that was where it came from, thanks for the pointer!
Obligatory reference to https://en.wikipedia.org/wiki/Web_(programming_system).

But yeah, Python made it usable :)