[swift-evolution] [Pitch] Limit Implicit Capture

Daniel Duan daniel at duan.org
Sun Mar 13 21:21:57 CDT 2016


>Daniel Duan via swift-evolution <swift-evolution at ...> writes:

>     let e:  <at> capture_all () -> () = { [a] in
>
>         let others = c // error: implicit capture in not allowed for 'e'
>     }
> 

Oops, I made an mistake in this example, 'c' here would not cause error since
user opts in implicit capturing. My apologies.




More information about the swift-evolution mailing list