Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Declaring the types explicitly not only provides type safety, but also allows the types to serve as a form of documentation, which makes the code easier to read and understand and make makes it more re-usable by other team members.