3 ms·
Not entirely: let foo = a(); let foo = b(foo); let fop = c(foo); let foo = d(foo); (Which is valid, e.g., in Rust.)
by deathanatos 5y ago
Not entirely:
let foo = a();
let foo = b(foo);
let fop = c(foo);
let foo = d(foo);
(Which is valid, e.g., in Rust.)
- TheEzEzz 5y agoYou do get a warning, though. And most Rust projects I've seen usually adhere to 0 warnings.
- renox 5y agoI hate variables shadowing, I'm very surprised that they allowed it in Rust, I saw an unpected behaviour caused by variable shadowing in C++ (global variable hidden by member variable) just last week..