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

Eagle Offshore eagleoffshore at me.com
Wed Oct 18 05:23:37 CDT 2017


+1

I really feel like the number of modifiers and decorators and annotations etc....has reached the point of illegibility.

<phrase><pronoun>It</pronoun><verb tense="present>is</verb><adverb modifies="is" purpose="intensifier">really</adverb><adjective>ridiculous</adjective><phrase>

That's what trying to read swift is getting to be like.

Trying to make every single nuance explicit is a fool's errand and is killing readability. 

Also, the choice to discard a result is properly the provenance of the caller, not an intrinsic feature of a function.

I'll stop now.

> On Oct 15, 2017, at 5:35 AM, Geordie Jay via swift-evolution <swift-evolution at swift.org> wrote:
> 
> I've always read it (frustratingly) as e.g. "func throws Bool", which it doesn't, it throws an Error.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171018/9e3617a6/attachment.html>


More information about the swift-evolution mailing list