3 ms·
We made a choice with Rust to force you to write type annotations in function signatures, because it prevents errors at a distance. Even in languages with full
by steveklabnik 11y ago
We made a choice with Rust to force you to write type annotations in function signatures, because it prevents errors at a distance. Even in languages with full type inference, writing out signatures is still considered good style for this reason.