Re: [swift-users] [Feature Request] Extend the `defer` statement

2017-10-09 Thread Jun Zhang via swift-users
...@gmail.com> wrote: > This feature request is probably one for swift evolution. > > I like the idea in theory, but I’d prefer to see the return value > identifier being spelled out, i.e. “returnValue” instead of the symbols. > > Jun Zhang via swift-users <swift-users@swift.org

Re: [swift-users] [Feature Request] Extend the `defer` statement

2017-10-08 Thread Jun Zhang via swift-users
… > > return result > } > > On Oct 8, 2017, at 7:34 PM, Jun Zhang via swift-users < > swift-users@swift.org> wrote: > > Hi dear swift developers, >I am kind of new to swift and I don't know if this feature already > exists. And if it exists already please te

[swift-users] [Feature Request] Extend the `defer` statement

2017-10-08 Thread Jun Zhang via swift-users
Hi dear swift developers, I am kind of new to swift and I don't know if this feature already exists. And if it exists already please tell me how. Thank you very much! The feature is to capturing the return value (maybe input value also) of the function. Here is the demo code: func

Re: [swift-users] Swift 3 Whole Module Optimization Issue

2016-12-23 Thread Jun Zhang via swift-users
This is the bug report: https://bugs.swift.org/browse/SR-3474 On Thu, Dec 22, 2016 at 11:08 AM, Jun Zhang wrote: > Hi, everyone. >I think I found a swift 3 whole module optimization issue. The code > below, when building with release configuration and running on an