[swift-evolution] [Proposal] Shadowing imported functions
Антон Жилин
antonyzhilin at gmail.com
Thu Apr 14 10:37:34 CDT 2016
As a side effect, we will be able to purge IUO from Swift abolutely,
completely.
And add a rule that we can shadow Optional<T> parameter with T for some T.
But it is the theme of a separate proposal.
- Anton
2016-04-14 18:28 GMT+03:00 Антон Жилин <antonyzhilin at gmail.com>:
> As promised, I've created a proposal to add @shadowing attribute. Link to
> the proposal:
>
>
> https://github.com/Anton3/swift-evolution/blob/shadowing-imported-functions/proposals/NNNN-shadowing-imported-functions.md
>
> Example:
>
> // Imported function (implicit declaration)func dispatch_sync(queue: dispatch_queue_t, block: (@convention(block) () -> Void)!)
> @shadowing(dispatch_sync(queue, block))func sync(queue: dispatch_queue_t, @noescape block: @convention(block) () -> Void)
>
>
> - Anton
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160414/fd076003/attachment.html>
More information about the swift-evolution
mailing list