Skip to content

Glossary: Swift Beyond the Basics

failable initializer

Also written: init?

An initializer written `init?` that returns `nil` for input it can't accept, so the caller gets an optional. A rep typing `lots` for a bag count gets `nil`.

Where the book teaches it

Related terms

typed throws