> Yeah. One thing that concerns me about that is that it means we lose the
> ability to write rebind-the-variable functional-style code:

Oh. You'd make this apply to irrevocable patterns as well? Or do you
intend to get rid of the restriction that let patterns are
irrevocable?

In the second case, I think I'd prefer a 'you can shadow anything,
except consts and tag variants' rule to a blanket 'no shadowing' one.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to