Conversation

i can't recall a time where having to annotate a binding with mut actually saved me. it's just typing and one more compile/lint cycle i have to go through to get my code to compile
8
3
I'm fairly convinced i prefer _reading_ code with mut on variables. It gives me immediate hints whether I'm reading something that's done in an imperative vs. functional way
2
3
real talk: mut should be something my editor plugin inserts when i *view* the code, perhaps even aware of interior mutability as stopgap for the present, the editor plugin should also insert it in source code when it would otherwise produce an error
2
5
I've already previously advocated for having rustc emit "fixits" for errors it knows unambiguously how to fix, like clang does, which IDEs can apply automatically
1
2
Show replies
Show replies