Questions:
- Why would you want to develop a library for your application?
- What is the advantage of protocols in Swift?
- How can generic functions help you?
- How do Xcode and lldb help you debug?
Answers:
- Because you might have classes that you want to share across microservices.
- You can define what you want types to have and what they look like without dictating the type itself.
- They can cover a number of types, and therefore reduce work.
- They help you find the exact line in which errors occurred.