Re:How generics are implemented in Go 1.18
by kllrnohj on Wednesday March 02, 2022 @09:55AM
(#30527996)
This would be the same thing in kotlin: https://godbolt.org/z/dq86ezsKd
And the bytecode is of comparable quality to javac's.
Bad bytecode is the kludge of byte code you get when you try to write the same thing in kotlin: https://godbolt.org/z/9sGa6csa6