Re:Things I hate about Go
by barrkel on Wednesday June 15, 2011 @06:19AM
(#2656538)
> Converting an array of Java Objects to an array of Java interfaces doesn't require anything at runtime.
It potentially costs every time you put something into the array - Java arrays are covariant. Either a runtime check is needed, or the JIT compiler will have to create a proof that any particular array access is to a consistently typed array.
It potentially costs every time you put something into the array - Java arrays are covariant. Either a runtime check is needed, or the JIT compiler will have to create a proof that any particular array access is to a consistently typed array.