Can we derive endpoints from just a trait definition?
One of Scala's strengths is domain modelling, and from a data definition, we can derive generic information in a Mirror, e.g. to generate type classes. For operations (such as endpoints) there is less support from metaprogramming, so we often create DSLs to describe them. I propose that we can extend Mirrors to operations, and use the most natural DSL of all - plain trait definitions.
scalar-conf.com/
Scalar Conference 2024
powered by SoftwareMill
#scalarconf
Негізгі бет Ғылым және технология Jamie Thompson MIRRORS FOR OPERATIONS, NOT DATA Scalar Conference 2024
Пікірлер: 3