Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
angry_cactus
· 6y ago · 0 comments
Not sure of the exact motivation, but Swift uses exclamation mark to unwrap optionals.
Comments
[–]
oefrha
6y ago
In Swift optional types are marked by a question mark (exactly as I suggested). Unwrapping an optional makes it non-optional, so the exclamation point has the opposite meaning.