Sessions
Inline Traits for Specialization
Lightning Talk
12. October 2026, 12:30 - 12:35
Kesselhaus
Inline traits are a language feature that eliminate allocations and virtual dispatch associated with trait composition in Scala. They do so by inlining their methods into their implementing subclasses. When inline traits are combined with the Specialized type class, they enable trait-based abstractions to be zero-cost.