Skip to content

There’re no trees where we’re going-scary-stuff-less metaprogramming in Scala 3

Photo of Matylda Kamińska
Hosted By
Matylda K.
There’re no trees where we’re going-scary-stuff-less metaprogramming in Scala 3

Details

Explore the compile-time arsenal that Scala 3 gives us without resorting to dirty tricks. (You may know them as macros 😉).

I shouldn't have to know what kind of syntax tree a constructor call desugars into, I just want to transform between two extremely similar data types because the Internet told me I should separate my domain models into layers before I shove them between curly brackets on a socket somewhere.

Are these the kind of thoughts you entertain on a daily basis?

See, you actually CAN have the latter without the former in Scala 3 with no loss to your compile-time comfort zone, so kiss your ASTs goodbye - we won't be seeing them again.

With that in mind, you can strap in for a gauntlet style run through match types, mirrors, typeclass derivation and the new, exciting and experimental named tuples to build a micro-library that does one-liner conversions between similarly shaped data types with some live demos where we desperately try to make the compiler really mad at us sprinkled in.

About the speaker:
Aleksander Raninko has been a Scala developer for the past 4 years now, and during this time he’s developed a liking in breaking the 4th wall of programming and the functional side of things. During his free time he usually engages in OSS, amateurishly jog, amateurishly cycle and listen to a lot of music while doing all of that. He/him.

Photo of Functional World group
Functional World
See more events
Online event
This event has passed