Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardSwiftunsafeBitCast and pointersSingle-choice MCQ

You unsafeBitCast a function value to UnsafeRawPointer to compare two closures by address. Why is the result misleading for a Swift closure that captures state?

let f: () -> Void = { print(x) }