Rust-style variable shadowing

I really like the idea of shadowing a var to a val. There’s been many times I have to change names mid function to prevent mistakes but then I end up using the original name by mistake if I forget I copied it to a val. It would also be nice if this worked with function parameters so you can change the parameter and continue using the same name to prevent confusion.

1 Like