Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumSwiftescaping vs non-escaping closuresSingle-choice MCQ

In a non-escaping closure, why can you reference `self` without writing `self.`?

class Counter { var count = 0 func bump(_ body: (Int) -> Void) { body(count) } func run() { bump { _ in count += 1 } // no self. needed } }