Why not Kotlin (but Java)?

Revision en5, by oversolver, 2022-06-09 11:46:55

Looking at language statistics in last rounds I have wondered why so many Java and so extremely low Kotlin coders?

Codeforces Round #797 (Div. 3)
CodeCraft-22 and Codeforces Round #795 (Div. 2)
Educational Codeforces Round 129 (Rated for Div. 2)

Kotlin, in rude of sense, is modern replace for Java.

If you are Java-coder then I am curious why you not change Java to Kotlin?

  • I'm too accustomed to Java/other, my brain think in Java, my hands do in Java
  • My (future) job is coding in Java
  • I doesn't like/hate Kotlin for some reasons
  • I don't want to note basic advantages of Kotlin which described everywhere. But it is language with modern syntax, and I think it is cool for cp almost as Python. I have more than one year experience of coding in Kotlin (but not cp!!), and I can describe my feelings as "I will never write even single line again in Java".

    comparators data class Segment(val l: Int, val r: Int, val id: Int) ... segments.sortWith(compareBy<Segment> { it.l } .thenByDescending { it.r } .thenBy { it.id } )

    modulo function val MOD = (1e9 + 7).toInt() println((-1).mod(MOD)) println(((MOD-1L)*(MOD-2L)).mod(MOD))

    custom extensions ```

    ```

    Tags kotlin, java

    History

     
     
     
     
    Revisions
     
     
      Rev. Lang. By When Δ Comment
    en8 English oversolver 2022-06-09 20:39:59 0 Tiny change: '\n}\n```\n' -> '\n}\n```\n\n' (published)
    en7 English oversolver 2022-06-09 20:39:26 297 Tiny change: 'r r = last\n whil' -> 'r r = last + 1\n whil'
    en6 English oversolver 2022-06-09 20:35:51 669 Tiny change: 'MOD))\n```' -> 'MOD))\n```\n'
    en5 English oversolver 2022-06-09 11:46:55 251
    en4 English oversolver 2022-06-09 11:37:18 147
    en3 English oversolver 2022-06-09 09:06:12 528 Tiny change: '\n\n\nI do not want to ' -> '\n\n\nI don't want to '
    en2 English oversolver 2022-06-09 08:55:15 310 Tiny change: '\n\n<li>\n(likes:1,option1)\n</li>' -> '\n\n<li>\na\n</li>\n\n<li>\na\n</li>'
    en1 English oversolver 2022-06-09 08:47:35 1347 Initial revision (saved to drafts)