[swift-evolution] [Discussion] Enforce argument labels on tuples
Adrian Zubarev
adrian.zubarev at devandartist.com
Wed Apr 20 13:01:23 CDT 2016
I forgot something in my previous post:
```swift
@require_argument_label
func foo(block: (boo: Int) -> Void) { /* pass boo to block */ }
foo() { boo in // do is enforced here
/* do some work*/
}
```
--
Adrian Zubarev
Am 20. April 2016 bei 19:59:23, Adrian Zubarev (adrian.zubarev at devandartist.com) schrieb:
@require_argument_label
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160420/43d479d1/attachment.html>
More information about the swift-evolution
mailing list