[swift-users] TWISt-shout Newsletter New Year's Day 2018

2017-12-31 Thread Kenny Leung via swift-users
Hi All. Here is your TWISt-shout Newsletter for the week of 2017-12-25 to 2017-12-31 https://github.com/pepperdog/TWISt-shout/blob/master/2018/TWISt-shout-2018-01-01.md Happy New Year! Enjoy! -Kenny

Re: [swift-users] Rethrows issue

2017-12-31 Thread Kenny Leung via swift-users
How about this? func withPredicateErrors( _ predicate: @escaping (Element) throws -> Bool, do body: ((Element) -> Bool) -> Return ) rethrows -> Return { var caught: Error? var element: Element? let value = body { elem in element = elem

Re: [swift-users] Rethrows issue

2017-12-31 Thread Jacob Bandes-Storch via swift-users
On Sat, Dec 30, 2017 at 11:35 PM, Nevin Brackett-Rozinsky via swift-users < swift-users@swift.org> wrote: > So, I know this doesn’t actually address your issue, but I think it is > important to clarify that “rethrows” does not guarantee anything about the > *type* of error thrown by a function.

[swift-users] Happy new year Swift community.

2017-12-31 Thread Adrian Zubarev via swift-users
Well some of you guys have to wait a little longer, but I can already wish everyone a happy new year from Germany.  -- Adrian Zubarev Sent with Airmail ___ swift-users mailing list swift-users@swift.org

Re: [swift-users] KeyedDecodingContainerProtocol decode methods non-mutating?

2017-12-31 Thread Brent Royal-Gordon via swift-users
> On Dec 28, 2017, at 1:57 PM, Ingo Maier via swift-users > wrote: > > Can anybody tell why the decode methods in UnkeyedDecodingContainer > are marked mutating but those in KeyedDecodingContainerProtocol and > SingleValueDecodingContainer are not? Is it a simple