init?(_:) vs init(_:) #135
Labels
addition
oh, so shiny!
brrr
such code, much wow
maybe
to do, or not to do?
subtraction
huh? where did it go?
BinaryInteger
initializers 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()
.The text was updated successfully, but these errors were encountered: