Practice Test Geeks home

Swift Case Studies & Practical Application 4

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

Select your answer