Skip to content

Instantly share code, notes, and snippets.

@TehBrian
Created July 8, 2022 04:59
Show Gist options
  • Save TehBrian/e380ddb6fc63f6d40fc40ae2481af946 to your computer and use it in GitHub Desktop.
Save TehBrian/e380ddb6fc63f6d40fc40ae2481af946 to your computer and use it in GitHub Desktop.
- was immutable by default (parameters, variables, and fields. make mutable with `mut` keyword. `final` only applies to classes to prevent subclassing.)
- was non-null by default (to allow a variable to be null, mark it with `?`)
- removed legacy API (java.io, java.util.Date, java.util.Calendar)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment