2 ms·
Maybe there still should be a compiler option to automatically evaluate the degree of abstraction complexity of a code, much like cyclomatic complexity, to prev
by bsaul 11y ago
Maybe there still should be a compiler option to automatically evaluate the degree of abstraction complexity of a code, much like cyclomatic complexity, to prevent abuses ?
- Soft 11y agoNot that I agree with your point, but cyclomatic complexity checks are actually implemented as a compiler plugin in rust-clippy project[1]. You'll get a compile time warning if your function becomes too complex. [1]: https://github.com/Manishearth/rust-clippy/wiki#cyclomatic_complexity https://github.com/Manishearth/rust-clippy/wiki#cyclomatic_c...