[swift-evolution] Make nested functions less order-dependent.

2017-01-15 Thread Hoon H. via swift-evolution
I like to suggest relaxing ordering restriction of nested functions. In short, just allow nested functions to be defined below its call site. ("Use of local variable ‘b’ before its declaration.” error) Here’s more explanation. In Swift, we can define nested functions. func a() {

Re: [swift-evolution] Allowing `guard let self = self else { … }` for weakly captured self in a closure.

2016-05-12 Thread Hoon H. via swift-evolution
I am replying months lately, but anyway, I just read your proposal, and I think this is cool. [guard self] I am in doubt about another stuffs such as `[guard self else …]`. I hope your proposal to be accepted. I am getting a bit tired of writing `guard let S = self else { … }`. I am