36 ms·
If unit testing makes the cut, then I think standardized documentation and doctests should be included also. Python (string literal at the beginning of a class/
by CGamesPlay 4y ago
If unit testing makes the cut, then I think standardized documentation and doctests should be included also. Python (string literal at the beginning of a class/function), C# (structured comments) and Rust (doc attributes) are three different, valid ways of adding this to the language.
- WalterBright 4y agoD has had these for a long time.
- CGamesPlay 4y agoLooks like these fall into the "structured comments" category, based on seeing /** */ and /// in a repository I found. Does it also have a story for doc tests?
- WalterBright 4y agoYes, tests in those comments are actually pulled out and run.