3 ms·
Scala is type-safe, but type-safe with escape hatches (which every good language has sometimes, when the programmer knows the truth of theorems the type-checker
by eli_gottlieb 14y ago
Scala is type-safe, but type-safe with escape hatches (which every good language has sometimes, when the programmer knows the truth of theorems the type-checker can't prove). It also has an undecidable type system, but then, so does half of everything nowadays.
- typetheoristic 14y agoIt isn't even about "escape hatches". There are programs that can be written without any special language features that will cause class cast exceptions. Please do your research.
- pkolaczk 14y agoPerhaps there are, but in over 20000 lines of Scala code I haven't encountered any. So this is a non-issue in practice.
- eli_gottlieb 14y agoCould you show one?