Suggested approach: There are three: when the function isn’t supposed to return a value, when it is supposed to return a value but you’ve used something like
fatalError() to skip that requirement, and when it returns a value using a single expression. That second case is useful when you have placeholder functions you haven’t implemented yet, or have created an abstract class where child classes will override your erroring implementations.
Estimated difficulty: Easy
Link copied to your pasteboard.