3 ms·
In rust it’s perfectly legal to do let x = foo() let x = bar() Regardless of the return types. That obviates a lot of the motivating problem that the
by vlovich123 2y ago
In rust it’s perfectly legal to do
let x = foo()
let x = bar()
Regardless of the return types. That obviates a lot of the motivating problem that the c++ paper is contorting itself to fix
- tempodox 2y agoYes, borrowing some stuff from functional languages (like the ability to shadow variables) gave Rust a good boost in ergonomics.