2 ms·
I think by using `var` keyword you have the potential to inherit the type without changing too much the syntax, in rust you could omit the type if the compiler
by norman784 4y ago
I think by using `var` keyword you have the potential to inherit the type without changing too much the syntax, in rust you could omit the type if the compiler can inherit the type, that saves you a lot of typing in the future, but you could argue that it makes harder to read the source code without any tool.
- tialaramex 4y agoThe word you wanted was "infer" not "inherit" For example "if the compiler can inherit the type" should read "if the compiler can infer the type".