|
|
|
|
|
by viraptor
2936 days ago
|
|
Type inference, at least for variables doesn't really take that much time. In practice almost every language does it, they just don't expose it to the developer. For example you can do this in C: foo->bar()->baz()
And the compiler has to get the type for the bar() result. That's one a small step from: let x = foo->bar()
Also that dictionary is most likely parsed and assigned a type in the expression whether you specify the variable type or not. |
|