| ▲ | kuhsaft 2 hours ago | |||||||
I don’t think that’s the case. You can absolutely implement a type-erased language on top of the CLR. Your language will just have the same constraints of a type-erased language like Java. Having reified generics in the CLR just lets you store more type information. There isn’t much of a trade off for CLR end-users. Compare this to the constraints and workarounds that Kotlin and Scala have due to type-erasure on the JVM. | ||||||||
| ▲ | pregnenolone an hour ago | parent | next [-] | |||||||
> Compare this to the constraints and workarounds that Kotlin and Scala have due to type-erasure on the JVM. The creator of Scala disagrees: https://youtu.be/Xn_YpUtXWT4?t=850 | ||||||||
| ▲ | cogman10 2 hours ago | parent | prev [-] | |||||||
You CAN do it, but it's much more difficult. And as far as I'm aware, both kotlin and Scala don't really suffer due to type erasure. | ||||||||
| ||||||||