Capital One Tech
Published in

Capital One Tech

Improved Protocol-Oriented Programming with Untyped Type Aliases (part 1)

Protocol-Oriented Programming is crucial to writing great Swift code. But the reusability of a protocol is greatly restricted because Swift explicitly disallows adding generics to one. This can be overcome by using an untyped (or implicitly typed) typealias as a generic — something most Swift developers have never seen.

Read the rest of this article on my blog.

--

--

The low down on our high tech from the engineering experts at Capital One. Learn about the solutions, ideas and stories driving our tech transformation.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store