mcc,
@mcc@mastodon.social avatar

Kotlin shortens the name of its integer type to "Int" but does not shorten the name of its boolean type, it's "Boolean". This feels wrong. At some primal level I do not like it

csolisr,

Imagine if their booleans were 64-bit long and their ints 32-bit

kboyd,
@kboyd@phpc.social avatar

@csolisr Booleints. Not even once.

mcc,
@mcc@mastodon.social avatar

@csolisr "You can partition a 64-bit integer into the low-order word, the 'int', and the high-order word, the 'eger'."

uliwitness,
@uliwitness@chaos.social avatar

@mcc @csolisr

You’d even have an extra byte to. zero-terminate it:

val integer: Int64 = ‘integer\0’

(Or however one would do that in Kotlin)

gnomon,
@gnomon@mastodon.social avatar

@mcc @csolisr the int is truculent and can only be made to interact by dint of concerted, patient effort, but the eger... WELL.

kattkieru,

@mcc @csolisr Ugh that has a high level of cursed

eater,
@eater@cijber.social avatar

@csolisr @mcc i've got a short int and loooong bool

glyph,
@glyph@mastodon.social avatar

@eater @csolisr @mcc it’s important to know the relative lengths of types otherwise you won’t have the right allocations

lambdasierra,
@lambdasierra@hachyderm.io avatar

@mcc that just feels like trolling Java

AT1ST,
@AT1ST@mstdn.ca avatar

@mcc Is its float "flo", but its double "Double"?

eichin,
@eichin@mastodon.mit.edu avatar

@mcc
It's the only type named after a person? (Nah It's probably some Java-inspired nonsense, but that's boring :)

unixwitch,

@mcc
This really feels wrong. Since I haven't done Kotlin (yet), are there more such fingernail on the blackboard things?

loke,
@loke@functional.cafe avatar

@mcc I mean, the rain is clear, but you're right that the end result is inconsistent. I'd prefer longer names, since you don't write them often anyway.

grumpasaurus,
@grumpasaurus@fosstodon.org avatar

@mcc take it up with them intellij folks

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ethstaker
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • ngwrru68w68
  • GTA5RPClips
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • cisconetworking
  • mdbf
  • kavyap
  • Durango
  • JUstTest
  • khanakhh
  • cubers
  • anitta
  • osvaldo12
  • everett
  • normalnudes
  • tester
  • tacticalgear
  • provamag3
  • modclub
  • Leos
  • megavids
  • lostlight
  • All magazines