2 ms·
Rust shows that you can remove most of the footguns, and keep the power with a much smaller "extra careful" surface. For example, instead of a comma operator a
by pornel 6y ago
Rust shows that you can remove most of the footguns, and keep the power with a much smaller "extra careful" surface.
For example, instead of a comma operator and its overloads, you can have tuples. Then `let (a,b) = (b,a)` works as expected. If you want weird code, you can overload `vec += (1,2,3,4,5)` with a tuple, and that's a straightforward case with no hidden gotchas.