qaz@lemmy.world to Programmer Humor@programming.devEnglish · 26 days agoWhen you manage to break the type systemlemmy.worldimagemessage-square10fedilinkarrow-up1105arrow-down17
arrow-up198arrow-down1imageWhen you manage to break the type systemlemmy.worldqaz@lemmy.world to Programmer Humor@programming.devEnglish · 26 days agomessage-square10fedilink
minus-squareqaz@lemmy.worldOPlinkfedilinkEnglisharrow-up22·26 days agoI broke the type system in Kotlin and ended up with a null value in a non-null (not lateinit) variable.
minus-squareMMauro@feddit.itlinkfedilinkarrow-up1·26 days agoInteresting. Care to share? I think they fixed a few of those issues with K2. Did you find something new or is it known?
minus-squareqaz@lemmy.worldOPlinkfedilinkEnglisharrow-up3·edit-226 days agoIt was about 3 years ago, and I haven’t been able to find my old code again. I probably discarded it after finding out it didn’t work well. I was able to find these screenshots though:
I broke the type system in Kotlin and ended up with a null value in a non-null (not
lateinit
) variable.How convoluted was it?
With no platform types involved?
Yes
Interesting. Care to share? I think they fixed a few of those issues with K2. Did you find something new or is it known?
It was about 3 years ago, and I haven’t been able to find my old code again. I probably discarded it after finding out it didn’t work well.
I was able to find these screenshots though: