3 ms·
Comments are not checked by the compiler, but I have done some experiments with ChatGPT to find Python functions with code that is inconsistent with their docst
by Bostonian 3y ago
Comments are not checked by the compiler, but I have done some experiments with ChatGPT to find Python functions with code that is inconsistent with their docstrings. When comments are used in an automated way, they do become more like code.
- tialaramex 3y agoIf you write an example in Rust for example, the Rust test subsystem will assume (unless you explicitly say otherwise) that your example should work, so, it gets the same treatment as any other tests. After all, an example which doesn't work is trash. But yes, generally the text you write in a comment isn't contemplated by the compiler.