Skip to content

Glossary: Swift Beyond the Basics

opaque type

Also written: some

`some Protocol`: one specific, fixed type that conforms to the protocol, known to Swift but hidden from the caller. As a parameter it is shorthand for a generic function.

Where the book teaches it

Related terms

some vs anygeneric functionassociated type