523
New language (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] swordsmanluke@programming.dev 10 points 8 months ago

Kotlin is Java with all the suck taken out.

It's a modern, ergonomic language that runs on the JVM and removes as much GD boilerplate as it can.

It's fantastic.

[-] sabreW4K3@lazysoci.al 1 points 8 months ago

Sorry, one more question. What does ergonomic mean in regards to programming languages?

[-] swordsmanluke@programming.dev 3 points 8 months ago

Lots of little quality of life things. For instance, in Kotlin types can be marked nullable or not. When you are passing a potential null into a non-nullable argument, the compiler raises an error.

But if you had already checked earlier in scope whether or not the value was null, the compiler remembers that the value is guaranteed not to be null and won't blow up.

Same for other typechecks. Once you have asserted that a value is a given type, you don't need to cast it everywhere else. The compiler will remember.

[-] sabreW4K3@lazysoci.al 1 points 8 months ago

Ooh, thank you

this post was submitted on 05 Apr 2024
523 points (94.4% liked)

Programmer Humor

19843 readers
10 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS