Downsides of Kotlin

Vitaliy Mokosiy
Jan 28 · 3 min read

1. Overuse of it

// So your traditional lambda...Buffer.Read { byteBuffer -> byteBufffer.get(byteArray) }// ... shorten to this oneBuffer.Read { it.get(byteArray) }
taskId, context.fileUploads()
.map { Pair(it.fileName(), it.uploadedFileName()) }
.toMap().let {
entry = it.entries.first()

2. Absence of primitive types

3. Missing ternary operator

minVal = a < b ? a : b
minVal = if (a < b) a else b


Vitaliy Mokosiy

Written by

CTO in Atola Technology. Computer geek. Inspired by concept of agility

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade