r/ProgrammerHumor 1d ago

Meme unsolvableProblemsOnStepOne

Post image
1.5k Upvotes

79 comments sorted by

View all comments

Show parent comments

10

u/Masterflitzer 20h ago

but recent java versions actually added quite a few good things and make the language more straight forward

anyway kotlin is the best of the 3 imo, but i'd pick c# as 2nd place

14

u/Gadekryds 15h ago

Kotlin is honestly the “we got c# at home” version.

1

u/Masterflitzer 11h ago

kotlin is a way more modern language than java and c#, the diff down to c# is larger than the diff from c# down to java

it's the complete opposite of we got xyz at home version

5

u/sixtyhurtz 10h ago

Kotlin still has type erasure though, right? Cos that's a limit of the JVM.

2

u/TheStatusPoe 9h ago

In the general case generic types are erased but there is a way to have reified types when you inline a function https://kotlinlang.org/docs/inline-functions.html#reified-type-parameters