3 ms·
"Any" types do not imply dynamic typing. Languages like Haskell are purely statically typed yet do not require explicit, concrete types for everything. Type inf
by chongli 8y ago
"Any" types do not imply dynamic typing. Languages like Haskell are purely statically typed yet do not require explicit, concrete types for everything. Type inference is the feature which bridges this gap.
- jcelerier 8y agotype inference and "any" types are completely different. e.g. in C++, auto var = 123; is inference, but std::any var2 = 123; is dynamic typing, because you can do `var2 = "foo bar";` unlike the first case.