4 ms·
In Rust, you still have to declare types for function parameters and return values. So, if you prefer to declare types everywhere, break your code down into sin
by twic 9y ago
In Rust, you still have to declare types for function parameters and return values. So, if you prefer to declare types everywhere, break your code down into single-expression functions!
- chewbacha 9y agoAnd even then, you are still allowed to explicitly define types everywhere, they are just optional. https://play.rust-lang.org/?gist=24d87fde3cc5273d4ec73ba5647d733a&version=stable https://play.rust-lang.org/?gist=24d87fde3cc5273d4ec73ba5647...