Главная
Study mode:
on
1
Intro
2
Value Classes in Scala
3
Agenda
4
Main Idea
5
Implications of this Representation
6
Some Use Cases
7
Example: Extension Method
8
Xprint:typer
9
Client Code
10
Defining Value Classes
11
Type Hierarchy
12
Extending Traits
13
Boxing
14
Trait Method Calls
15
Performance Model
16
Overloading Restrictions
17
Manifestation at Bridges class C[T](val x T) extends Anyval
18
Extending Java Interfaces
19
Option[T] value class?
20
Feature Interactions in the Compiler
21
Future: Multiple Fields
Description:
Explore value classes in Scala with Lukas Rytz in this 36-minute conference talk. Delve into the main idea behind value classes, their representation implications, and various use cases. Learn about defining value classes, type hierarchy, extending traits, and boxing. Understand performance models, overloading restrictions, and feature interactions in the compiler. Discover how value classes interact with Java interfaces and consider future possibilities like multiple fields. Gain insights into extension methods, trait method calls, and the manifestation of value classes at bridges.

Value Classes in Scala

Java
Add to list
0:00 / 0:00