[swift-evolution] Pitch: @required attribute for closures

michael.peternell at gmx.at michael.peternell at gmx.at
Sun Jun 5 17:46:06 CDT 2016


> Am 05.06.2016 um 20:31 schrieb Charlie Monroe via swift-evolution <swift-evolution at swift.org>:
> 
> While I agree with Michael that nowadays, a lot of stuff that doesn't need to be, is done async, which leads to a giant thread pool per app and developers nowadays do not think of the cost of inter-thread communication (i.e. each dispatch_(a)sync has its cost, even though it's a light-weight thread), I agree with Charles that something like suggested does indeed help debugging issues with multi-thread apps.
> 

I agree that it may help in a few cases. But I think the change is "not significant enough to warrant a change in Swift". It adds yet another keyword to the language that every new dev has to learn about, and the problem it solves can more elegantly be solved by writing more elegant code.

-Michael



More information about the swift-evolution mailing list