What is type declaration (also known as type hinting)
Good responses =
- A way to require parameters of functions to be of a certain type when called. (Bonus points if strict typing is mentioned)
- Type declaration ensures that parameters are always of the expected type. This reduces validation requirements for the developer.