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`.
Glossary: Swift Beyond the Basics
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`.