Squeeze your Swift: how to write safer, smarter code by constraining associated types, protocols, generics, and extensions

Day 1 /  / Track 1  /  EN / For practicing engineers

It might sound counterintuitive, but laying down strict rules for what your code can and can't do helps you work faster. By constraining your associated types, protocols, generics, and extensions, the Swift compiler can help you avoid problems, minimize namespace clutter, and write better code.