3 ms·
See, “compilation unit” tells the uninitiated reader many things: it’s something that gets compiled or at least has to do something with compilation. And it’s a
by aaaaaaaaaab 8y ago
See, “compilation unit” tells the uninitiated reader many things: it’s something that gets compiled or at least has to do something with compilation. And it’s a “unit”, so it’s probably a chunk of source code that gets compiled together. It brings to mind analogous concepts from other languages/ecosystems so we can place it somewhere in our mental model from the outset.
On the other hand “crate” tells you nothing at all.