[swift-evolution] Making capturing semantics of local

Mike Kluev mike.kluev at gmail.com
Sun Oct 29 10:21:05 CDT 2017


On 28 October 2017 at 00:00, Slava Pestov <spestov at apple.com> wrote:

> That sounds like a bug, and it could occur with closure expressions also,
> since at the SILGen level and below they’re basically the same thing.
>
>
indeed:

let closure = {}
print("closure is \(closure)")      // prints: "closure is (Function)"

QED

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171029/fbcbb4c5/attachment.html>


More information about the swift-evolution mailing list