Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
What are the pros and cons of using static typing in a programming language?

### Response:
The advantages of static typing include improved code readability and maintainability, reduced bugs and errors at compile time, and overall improved program performance. Meanwhile, the disadvantages of static typing include a need for additional code to declare types, a lack of flexibility when working with dynamic data, and a slower development time due to larger codebase.