Closed sirthias closed 8 months ago
Hi, I'd like to tell you that Iltotore/iron: Strong type constraints for Scala can be alternative. Despite it brings fewer default refined types than refined
, it works well (only) for Scala 3. It has simple interface.
Oops sorry there is https://iltotore.github.io/iron/docs/modules/borer.html .
Thannk you, @windymelt, for reminding me about this issue.
I also prepare iron
now over refined
for Scala 3.
And since the current version of borer is Scala 3 only I think this ticket can be closed...
which allows for
T refined P
to be encoded using the givenEncoder[T]
and decoded using the givenDecoder[T]
, followed by the validation logic for the predicateP
.Implementation will probably similar to circe-refined.
At the time of writing refined support is Scala 3 is limited. It does work for runtime validations but for compile time verification.