SmushyTaco

Untitled

Jul 18th, 2020
518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. There are 3 varients of Kotlin: Kotlin Native, Kotlin JS, and Kotlin JVM (Kotlin JVM communicates perfectly with Java) and Kotlin has these things that Java doesn't:
  2. 1. Non null types
  3. 2. Better syntax
  4. 3. Better null handling (Some things about null in Java that are warnings are hard errors in Kotlin to make sure you handle it)
  5. 4. Operator overloading
  6. 5. Properties (As opposed to ugly getters and setters)
  7. 6. No need for semicolons after every line.
  8. 7. The ? operator (While you're doing if (thing != null) thing.function() I'm doing thing?.function())
  9. 8. Unsigned types for numbers
  10. and there's more I don't remember off the top of my head.
Advertisement
Add Comment
Please, Sign In to add comment