Is it possible for Scala to have reified generics without changing the JVM?

后端 未结 5 1898
谎友^
谎友^ 2021-01-03 19:29

I\'ve recently started learning Scala and was disappointed (but not surprised) that their generics are also implemented via type erasure.

My question is, is it possi

5条回答
  •  北海茫月
    2021-01-03 19:48

    Just to complement oxbow_lakes, there's a question on Stack Overflow about how to get around type erasure in Scala.

提交回复
热议问题