4 ms·
> What? In Scala it is perfectly possible to pass an uninitialized reference to a piece of code. NULLs are a non-issue; that's what Option and FP constructs (m
by virtualwhys 13y ago
> What? In Scala it is perfectly possible to pass an uninitialized reference to a piece of code.
NULLs are a non-issue; that's what Option and FP constructs (map, flatMap, etc.) are for.
> I will concede that static type systems do catch some errors that aren't caught by dynamic languages.
Dynamic languages catch NO errors at all, period. You yourself must maintain your own adhoc type checker (unit tests, with 100% coverage) in order to prevent the class of errors that statically typed languages catch from manifesting at runtime.
That's a great quote, actually backs Scala given that you give up pretty much nothing in terms of expressiveness (compared to Ruby, Python, Groovy, etc.) while retaining all of the safety ;-)