[swift-evolution] [Proposal draft] Generalized Naming for Any Function
pgwsmith at gmail.com
Tue Dec 29 19:14:00 CST 2015
Hi all, hope I’m not adding to what has already been said.
let fn = someView.insertSubview(_:at:)
Could you have:
let fn = someView.insertSubview(_ at: _)
Basically like unused parameters in reverse.
Filling out all parameters with _ would return a function to the method, like the behaviour proposed. The advantages would be consistency, readability, and compatibility with autocomplete.
Additionally this could possibly lead to partial parameter application, but that’s outside the scope of what is being discussed.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution