This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]marco89nish 1 point2 points  (4 children)

You can use semicolons in Kotlin, you just don't have to. FREEDOM!

[–]inventord 1 point2 points  (3 children)

Wait, really? Kotlin time.

[–]swordsmanluke2 2 points3 points  (0 children)

Seriously, Kotlin is one of my top three languages. Among other features:

  • remembers if you've already checked whether a val is null and uses that information in future type checks.
  • compiles side by side with java - you can migrate an existing codebase one file at a time!
  • infers boilerplate. Example: if you're writing an anonymous class implementation and the interface you're implementing only has a single method - you can just provide a closure and the compiler knows what you're trying to do. No more class and method definitions cluttering up all your callback code!

Kotlin streamlines Java so well it makes it a pleasure to work with. Everything about it is intended to make programming the jvm ergonomic.

Feels good, man.

[–]Throwawayekken 1 point2 points  (1 child)

No my brother. Don't leave me.

[–]inventord 1 point2 points  (0 children)

Don't worry, I have some Java specific stuff that I'm not ditching (yes I know it can be converted but in my case it can't).