Hacker News new | past | comments | ask | show | jobs | submit login

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.




I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: