Swift Practice Test

Swift Case Studies & Practical Application 4

Free · Instant Results

You're refactoring a legacy codebase where many functions return `-1` to signal errors. Which modern Swift pattern replaces this anti-pattern?
▶ Start Practice Test