-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Description
Hello
I was thinking that it would be great to add to some type refinement.
Something link this
case class Person(name: String, age: Int :| Positive)
object Person:
given Schema[Person] = Schema.derived
val jsonCodec = Schema[Person].derive(JsonFormat)
I was playing around with the concept, and chose Iron as its scala3 macro based, and hoped π it worked but maybe I was pushing too far.
I was wondering how hard can it be to implement and what should be a good starting point. Or is it better to desist from the idea.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels