top | item 40739196

(no title)

rmrfchik | 1 year ago

Because Kotlin as a mess language and have poor IDE support.

  $ kotlin
  Welcome to Kotlin version 1.6.10 (JRE 21.0.1+12-Debian-2)
  Type :help for help, :quit for quit
  >>> val b=ByteArray(1);
  >>> b[0] == 0;
  error: operator '==' cannot be applied to 'Byte' and 'Int'
  b[0] == 0;
  ^

  $ jshell
  |  Welcome to JShell -- Version 21.0.1
  |  For an introduction type: /help intro

  jshell> byte[] ba={0}
  ba ==> byte[1] { 0 }

  jshell> ba[0]==0
  $2 ==> true
upd: format

discuss

order

No comments yet.