> Actually the compiler checks cover most of the things I’d normally unit-test, so this is probably the only non-trivial project I wrote without checks and I’m OK with that. This is interesting. First time I read about Rust I had this gut feeling that it's design might reduce the number of unit testing cases. Someone care to comment on that?
Just to add some context, here are the tests which I didn't write, but would in Python/Flask usually: - Proper behaviour if I don't pass a parameter. Not needed, because it's an explicit `Option ` which I have to handle. - Is results list constructed properly / what's the None-vs-empty behaviour. Not needed, `Vec ` is verified at type level and None is not possible. - What happens if various database functions don't…
The Option type alone handles so many cases which would otherwise require unit-tests in Python or another unityped language.