TwoFace values: a bridge between terms and types

TwoFace values: a bridge between terms and types

Scala 2.13 introduces literal types, and with great types comes great thirst for power to control them. In this talk we get acquainted with the singleton-ops library, a typelevel programming library that enables constraining and performing operations on literal types. We learn about the library’s TwoFace value feature, and how it can be used to bridge the gap between types and terms by converting a type expression to term expression and vice-versa.

6822b9e8f6c9d73ccac04c5fb1f11ab9?s=128

Oron Port

June 14, 2019
Tweet