Scala 3: The Best of the Rest
summary
Scala 3 demo shows concrete wins: enums compile with two-line declarations and auto-derives; exports for delegation lets a wrapper re-export dozens of methods instead of hand-writing overloads; explicit nulls flips null off as a subtype so Java interop (GeoTools) requires null-to-Option fixes; multiversal equality gives compile-time control over which types compare; transparent traits shrink noisy inferred types; trait parameters replace early-initializers to avoid eager nulls; a type-based map uses intersection (&) types and inline/type-tag tricks; opaque types give zero-cost unit-safe types — all demos compile after small fixes.
AI-written summary · about
