[swift-evolution] /*Let it be*/ func() -> @discardable Bool {} /*Rather Than*/ @discardableResult func() -> Bool {}

Mike Kluev mike.kluev at gmail.com
Mon Oct 9 17:15:59 CDT 2017


On 9 October 2017 at 20:43, Howard Lovatt <howard.lovatt at gmail.com> wrote:

>
> I would prefer something like:
>
>     func x() -> Bool @ throws disguardableResult public async mutating
>
> Where @ introduces a list of space separated modifiers.
>

make it more English :)

public async mutating throwing func foo() -> discardable Bool {
    ...
}

Unfortunately I am not sure this is practical at this stage.
>

true :(

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171009/c3b139c2/attachment.html>


More information about the swift-evolution mailing list