News for hackers. Stuff that matters.
Re:Apple’s Use of Swift in iOS 13 by novok on Thursday September 26, 2019 @06:46PM (#21086414)
You fix that by banning force unwraps outside of something like unit tests with a linter. We do it at work and I can't remember it ever being an issue.
Re:Apple’s Use of Swift in iOS 13 by yawaramin on Thursday September 26, 2019 @08:07PM (#21087068)
Great idea. Can you enforce it in PR checks?
Re:Apple’s Use of Swift in iOS 13 by angott on Thursday September 26, 2019 @08:52PM (#21087403)
Yes, at work we added swiftlint as part of our build pipeline, and we have it reject any usage of force unwraps.