3 ms·
Beyond what others have said about superficial things like laying out code differently, remember that Rust encodes memory-safety-related information in types, f
by yencabulator 2y ago
Beyond what others have said about superficial things like laying out code differently, remember that Rust encodes memory-safety-related information in types, function signatures etc that might not exist at all in a C/C++ "we hope you do it right, or it's UB" codebase.
Also, here's a code size tracker that counts tokens not lines, which is a better measure: https://github.com/rrethy/tcount https://github.com/rrethy/tcount