Re: [swift-evolution] Change 'for in' expression to for [] { (item) in ... }

2017-07-28 Thread Kwanghoon Choi via swift-evolution
he amount of code this breaks would be worth the consistency. And as Alex > mentioned, it is possible through .forEach > > > > > >> On Jul 28, 2017, at 10:19 AM, Kwanghoon Choi via swift-evolution < > swift-evolution@swift.org> wrote: > >> > >> Hello > &

[swift-evolution] Change 'for in' expression to for [] { (item) in ... }

2017-07-28 Thread Kwanghoon Choi via swift-evolution
Hello I found someone easy mistake using for in loop statement. Ex) var i = 0 for i in 0..<10 { } print(i) And this user expected print(i) is “10” Many experienced swift developers doesn’t misunderstand like this. But always someone is new comers, and I think this expression make

[swift-evolution] [Proposal] autocreate parameter for optional values

2016-07-28 Thread Kwanghoon Choi via swift-evolution
Dear swifters. I have an proposal for autocreation of optional variables This idea came from below situation I have to addtional header to NSURLSessionConfiguration like this let config = NSURLSessionConfiguration.defaultSessionConfiguration()

[swift-evolution] [Idea] Deferable type for swift and smaller defer scope

2016-07-07 Thread Kwanghoon Choi via swift-evolution
I have been using defer for very happy. It’ like with keyword on python, using easily for needs closing context like NSFileHandle. anyway defer is very useful statement for function scope. However, I thinking now, What if i can use more small defer. below, that’s codes of idea. // firstbly,

[swift-evolution] operator or wrapper for NSLocalizedString

2016-06-23 Thread Kwanghoon Choi via swift-evolution
Dear community I think NSLocalizedString is little old. Mostly knows what is this. Sure, everyone of swift user can make operator or some kind convenient functions. But always, native supports will be better choice. I suggest operator or wrapper for NSLocalizedString like #selector(…) Ex)