Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumSwiftautoclosureSingle-choice MCQ

Given this function signature, what does the `@autoclosure` attribute actually do to the argument passed at the call site?

func logIfNeeded(_ message: @autoclosure () -> String) { #if DEBUG print(message()) #endif } logIfNeeded(expensiveDescription())