airframe icon indicating copy to clipboard operation
airframe copied to clipboard

Surface.ofClass(cls) for Scala 3

Open xerial opened this issue 3 years ago • 0 comments

This feature is only for Scala JVM.

  • [ ] Split the runtime-reflection related code in CompileTimeSurfaceFactory between Scala JVM and JS (e.g., dotty types, TastyReader are not available in Scala.js)
  • [ ] Add Surface.ofClass(cls) implementation.
    • This is used in AnyCodec, http code generator. Using TastyReader would work.
    • [x] If Sufarces can be computed at compile-time, AnyCodec(knownSufaces = Seq(...)) can be used after Airframe 22.6.0

After this method is available, we can support Scala 3 in codec, http-code-generator, and parquet, and finally we can complete Scala 3 migration project #1077

xerial avatar May 31 '22 20:05 xerial