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

Xiaodi Wu xiaodi.wu at gmail.com
Tue Oct 10 01:02:31 CDT 2017


This idea was discussed long ago and the present design was selected. At
this point in Swift Evolution, source-breaking changes are in scope only if
the status quo is demonstrably harmful.
On Mon, Oct 9, 2017 at 17:16 Mike Kluev via swift-evolution <
swift-evolution at swift.org> wrote:

> 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
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171010/6d44662f/attachment.html>


More information about the swift-evolution mailing list