> I don't understand this one at all. What's wrong with "as"?
That it silently overflows.
> And if you need a checked conversion just write a small wrapper function?
A better suggestion would be to wait for TryFrom/TryInto which IIRC should be stabilised soon-ish.
> So unless I'm missing something something like:
Assignment (https://doc.rust-lang.org/reference/expressions.html#assignm...) not declaration (https://doc.rust-lang.org/reference/statements.html#declarat...). So
(a, b) = (1, 2)
given pre-existing non-redeclared a and b. Of course this is not very useful for such a trivial example but a common case is some sort of procedural loop e.g. let (mut a, mut b) = (0, 0);
for it in thing {
(a, b) = <something>
}
// use a and b here
currently you have to assign to (1+) temporary variables before porting that to the actual bindings you care about.