Closed abhijeetbhagat closed 8 months ago
I don't think this is a good idea. There are many other places where you could save characters in the language. Rust already keeps a good balance of not writing too many characters but also not too few, so it's not a burden but also readable.
If typing it is an issue for you, you could propose autocompleting letm
to let mut
in code editors instead.
Also, there are many occurrences of mut
for bindings (e.g. parameters, match
, let Foo(mut field)
) that you cannot save the character for, and possibly (citation needed) &mut
is way more prevalent than let mut
if you want to save characters somewhere.
Closing under https://lang-team.rust-lang.org/frequently-requested-changes.html#fundamental-changes-to-rust-syntax, which covers
These also include proposals to add "alternative" syntaxes,
i propose introducing a new keyword
letm
as a syntactic sugar forlet mut
. this saves 4 characters.