Hacker News new | ask | show | jobs
by angry_cactus 2251 days ago
Not sure of the exact motivation, but Swift uses exclamation mark to unwrap optionals.
1 comments

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.