1

Avoiding macros with inline and derived

 2 years ago
source link: https://www.signifytechnology.com/blog/2021/04/avoiding-macros-with-inline-and-derived-by-josh-suereth
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

​ Afraid of the Scala 2 macro syntax? Have no fear, Scala 3 is here!

Josh Suereth shows us how great Scala 3 really will be in this talk from Scala Love in the City Conference.

Avoiding macros with inline and derived

Have you always wanted amazing compile-time features in your API, but been afraid of the Scala 2 macro syntax? Have no fear, Scala 3 is here! Scala 3 provides a rich set of features that negate the need for most macros and provide an incredible toolset for APis that are easy to maintain. We'll look at using inline methods, tuples and derived code to create performant AND flexible APIs, as well as prototype implementations from GPU + serialization use cases.

A quick agenda: Improving performance with Inline Deriving code at compile time & working with Tuples Writing good error messages w/ inline When not to inline


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK