> Marijn's note on the wiki[1] about this says he is not a fan. Is this still > true? Is the opposition strong or weak?
I'm still not optimistic. I think we'll want to extend pattern matching to also handle matching against constants and maybe even local variables. So probably the rule would end up being that you can't shadow something with a pattern binding. I'm okay with trying that and seeing how it works out, but I *am* worried that it'd introduce a new problem -- the set of names that you can bind will be much reduced, and adding something somewhere up the scope chain will invalidate code further down. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
