-
Notifications
You must be signed in to change notification settings - Fork 0
init?(_:) vs init(_:) #135
Copy link
Copy link
Open
Labels
additionoh, so shiny!oh, so shiny!brrrsuch code, much wowsuch code, much wowmaybeto do, or not to do?to do, or not to do?subtractionhuh? where did it go?huh? where did it go?
Metadata
Metadata
Assignees
Labels
additionoh, so shiny!oh, so shiny!brrrsuch code, much wowsuch code, much wowmaybeto do, or not to do?to do, or not to do?subtractionhuh? where did it go?huh? where did it go?
BinaryIntegerinitializers of the formT/init(_:)are abbreviations ofT.exactly(_:).unwrap(). Alternatively, I could returnOptional<T>.Optional<T>force-unwrapping is only one additional character ("!") and explicit error-handling is awesome. In this hypothetical rework,init?(_:)would an abbreviation ofT.exactly(_:).optional().