3 ms·
-Warning -Werror -Wall -Wextra will tell you plenty. And you can add -Wconversion if you want to be clear on int conversion, and maybe -WShadow if you want to
by orwin 6y ago
-Warning -Werror -Wall -Wextra will tell you plenty.
And you can add -Wconversion if you want to be clear on int conversion, and maybe -WShadow if you want to be sure you code is easily understandable.
I did TDD five time. Twice with python, one with Go, onw with Rust and once with Common lisp. It was usefull with python, not great with Go and especially Common lisp (i mean, debugging while the code is held is better than debugging with tests, and Common lisp is a really good language to prototype, and TDD takes that out). And Miserable with Rust. With rust i'll test functionality and unsafe code, but i won't ever do TDD again, even if you paid me FU money.