[swift-evolution] /*Let it be*/ func() -> @discardable Bool {} /*Rather Than*/ @discardableResult func() -> Bool {}
Eagle Offshore
eagleoffshore at mac.com
Sat Oct 21 00:18:44 CDT 2017
> On Oct 20, 2017, at 2:55 PM, David Sweeris via swift-evolution <swift-evolution at swift.org> wrote:
>
> how else are we supposed to express nuances when the language’s default is wrong for the code in question?
Fix the defaults?
Honestly, I'm not sure how I've been programming for so long (30+ years) without having to add half a dozen annotations to every single declaration.
"If you think C++ is not overly complicated, just what is a protected abstract virtual base pure virtual private destructor and when was the last time you needed one?
— Tom Cargill"
Same applies to Swift at this point. Its jumped the shark on annotations.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171020/0189617c/attachment.html>
More information about the swift-evolution
mailing list