Rust, IMO is a noisy language. So not surprising it took more lines.
Having to handle every case of every branch also probably balloons line count.
Efficient LOC is not a goal of rust at all anyway.
Having to handle every case of every branch also probably balloons line count.
Efficient LOC is not a goal of rust at all anyway.
I do plan to add something similar to Clojure's spec though, so the compiler can at least be advised about things and warning if stuff is missing.
But I do agree, any statically typed language should have that check and not just warn about it. It should be a hard error, no questions asked. And I love that Rust didn't relegate it to a warning that could be turned be into an error.