When primitives are given as generic parameters, are they boxed like in Java backend?
o
olonho
07/05/2018, 8:45 AM
yes, K/N uses type erasure and boxing
😞 2
s
sksk
07/05/2018, 5:52 PM
will this be changed ? i see no reason to mimic java failures 😕
o
olonho
07/05/2018, 7:01 PM
Maybe, but this would require work on language redesign
d
Dominaezzz
07/05/2018, 9:41 PM
If by some miracle, Java gets reified generics and value types. Would this change anything? Or was the decision to have type erasure independent of the Java backend?
o
olonho
07/06/2018, 5:15 AM
reified generics works (like in JVM BE) by compile time type substitution