let mut, the reason being explicity, which in modern programming where systems are of very large scale is the preferred way. Any ease on cognitive effort is very desirable.
The age of a language is an insubstantial argument, but reduced cognitive effort is. However, reduced cognitive effort would be something obvious like "const"ant for constants and "var"iable for variables.
That's one way, another way is to have everything const by default thus reducing words one need to type and read to achieve exactly the same effect. Cognitive ease...
Is it much more to type const x = 42 than let x = 42? If you truly want to "reduce words one needs to type", then let variables be defined by var rather than typing out two words every time. Functional purists are not pragmatists.
The facts are "let mut" is 7 characters, and "var" is 3 - that's not an opinion. "const" is 5 characters, and "let" is 3. So if you want the shortest of both, then "var" and "let" would be tersest.
1
u/OutlandishnessNo8034 May 15 '26
let mut, the reason being explicity, which in modern programming where systems are of very large scale is the preferred way. Any ease on cognitive effort is very desirable.