3 ms·
It isn't documentation. It is example code, in the best case. That shit belongs in other files, not in the main file. There is also a reason why literate progra
by wakawaka28 8mo ago
It isn't documentation. It is example code, in the best case. That shit belongs in other files, not in the main file. There is also a reason why literate programming never took off in general. Good luck getting anything done when 80% (conservatively) of the stuff you have to scroll through contributes nothing to the actual execution of the program and might actually be giving you false impressions of how things need to be done.
- g947o 8mo agoI have yet to see a single Rust file where the test comes before source and takes 80% of the file content.
- wakawaka28 8mo agoProbably because all the tests are trivial, and people have the bias to not add all the testing that is needed inline with the code.