3 ms·
Though more "inferred" types rather than dynamic types, scala does allow you to do: val s = "String" Rather than the more strict: val s:String = "String"
by kentosi 8y ago
Though more "inferred" types rather than dynamic types, scala does allow you to do:
val s = "String"
Rather than the more strict:
val s:String = "String"
- dudul 8y agoType inference has nothing to do with dynamic typing.
- kentosi 8y agoI had no idea what you were talking about, so I did my own research (ie - googled "type inference vs dynamic typing") and I stand corrected. https://herbsutter.com/2008/06/20/type-inference-vs-staticdynamic-typing/ https://herbsutter.com/2008/06/20/type-inference-vs-staticdy...