airframe icon indicating copy to clipboard operation
airframe copied to clipboard

MessageCodec.of[A] is missing :TypeTag

Open hsn10 opened this issue 5 years ago • 1 comments

other MessageCodec object methods has typetag annotation I needed this change: https://gitlab.com/hsn10/akka-http-msgpack/-/commit/fb4edc72db5289c28bdc1a528ebc90484b3a1347

to make msgpack serializer for Akka to work. If it had typetag on .of method, i expect that it would be done by compiler or at least I would get error - no typetag for T.

hsn10 avatar Jun 29 '20 20:06 hsn10

This is for supporting Scala.js, which has no TypeTag support.

We may be able to add such an interface only for JVM like airframe-codec/.jvm/ ...

xerial avatar Jun 29 '20 21:06 xerial

TypeTag has been removed in Scala 3, so we will not support this

xerial avatar Aug 04 '23 04:08 xerial