Why can’t we do
fn foo(i: i32, j: i32) -> i32 { i + j } fn main() { println!("{}", foo((1, 2))); } in Rust?
The idea First of all: I don’t know much about what is going on in rust-compiler-land, hence I don’t know whether this is technically possible or even in progress already. I’m simply writing down some thoughts here.
The idea, or rather the question, is: Why can’t we map tuples on arguments in Rust?
Home | About me | Projects | Papers/Talks | Traveling | Photography |