Skill Wiki v0.1.0
anti-pattern @ios-swift/anti-pattern-never-force-unwrap-publicly

Never Force Unwrap Publicly

Reaching for `!` on an `Optional` whose value originates from input — a network response, user input, an `Info.…

Skill
@ios-swift
Domain
ios-swift
Version
0.1.0
Quality
4.0
Edges
3 out · 3 in
Tokens
116/462/808
$ prime install @ios-swift/anti-pattern-never-force-unwrap-publicly

Projection

Always in _index.xml · the agent never has to ask for this.

NeverForceUnwrapPublicly [anti-pattern] v0.1.0

Reaching for ! on an Optional whose value originates from input — a network response, user input, an Info.plist lookup, a URL(string:), a forced cast (as!), an IBOutlet that happens to be wired most of the time — turns every nil into an immediate runtime crash. The same applies to try!: if the throwing call can fail under any input the user might supply, it must not be force-tried.

Source

prime-system/examples/ios-swift/primes/compiled/@ios-swift/anti-pattern-never-force-unwrap-publicly/atom.yaml

Compiled at 2026-05-10