Chapter 20. Type-Level Programming
Topics in This Chapter L3
Why use Scala instead of Java on the JVM? Sure, the Scala syntax is more concise and more regular than Java, but in the end, it is all about the types. Types help us express what we expect our programs to do. Type mismatches help detect programming errors early, when they are cheap to fix. You have already seen many instances where the Scala type system is richer than Java. This chapter introduces you to advanced techniques of “programming with types”—analyzing ...
Get Scala for the Impatient, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.