Hi, I often find myself browsing through a library and not paying attention to the (unrendered) doc comments. I usually only read them when I am browsing the rendered documentation on docs.rs. However when browsing the code they often clutter a lot of screen space.
So I thought, what if we allowed to separate code and documentation altogether? There could be separate files which reference items in the source code and document them.
It's worth noting that separating documentation and code does also have a significant negative effect. Comments/documentation are already at high risk of getting out of date even when right next to the code they describe; putting more distance increases the risk dramatically.
There's certainly a balance to strike. Putting examples in a separate but included file for example seems to combine the two approaches: It removes a potentially large amount of documentation from the source, that is incidentally likely least relevant to the implementation internals, and is also compile checked so that it's less likely to silently become stale.