In tutorials it\'s written that functionally both are same even closure is more easier then block and its avoided the complexity of block and memory management, I\'ve gone t
To show an actual code example of the differences:
This does compile:
let x : @convention(swift) (inout Int) -> ()
This does not:
let y : @convention(block) (inout Int) -> ()
with the error (inout Int) -> () is not representable in Objective-C
(inout Int) -> () is not representable in Objective-C