Re: [swift-dev] [swift-evolution] Inefficiency in recursive value types

2017-03-13 Thread Dimitri Racordon via swift-dev
More of a swift-dev topic. CC'ing there, BCC'ing evolution. Thanks! I’ll track the issue over there. I do have to note that this is a very strange of writing Nat. Why recurse through a protocol type instead of recursing concretely? My examples are extracted from a more complex codebase that r

[swift-dev] Reason for call only non-escaping parameter

2017-05-31 Thread Dimitri Racordon via swift-dev
Hi everyone, I failed to find the reason why Swift does not allows a non-escaping parameter to be assigned to a local variable. Here is a minimal example: func f(_ closure: () -> Int) { let a = closure } I do understand that assigning a non-escaping closure to a variable whose lifetime exc

Re: [swift-dev] Reason for call only non-escaping parameter

2017-05-31 Thread Dimitri Racordon via swift-dev
assignments would have to be disallowed. Best, Dimitri On 31 May 2017, at 22:10, John McCall mailto:rjmcc...@apple.com>> wrote: On May 31, 2017, at 12:21 PM, Dimitri Racordon via swift-dev mailto:swift-dev@swift.org>> wrote: Hi everyone, I failed to find the reason why Swift does not

Re: [swift-dev] Reason for call only non-escaping parameter

2017-05-31 Thread Dimitri Racordon via swift-dev
cc...@apple.com>> wrote: On May 31, 2017, at 12:21 PM, Dimitri Racordon via swift-dev mailto:swift-dev@swift.org>> wrote: Hi everyone, I failed to find the reason why Swift does not allows a non-escaping parameter to be assigned to a local variable. Here is a minimal example: func f(_ cl

[swift-dev] Type inference failing to solve Collection's associated types in protocol extensions

2017-09-04 Thread Dimitri Racordon via swift-dev
Hello fellow Swift enthusiasts. I’m struggling to understand why type inference fails to solve Collection s associated types while trying to provide it with a default implementation, via protocol extensions, when an additional subscript is provided. Here is a minimal example: protocol SearchTr

Re: [swift-dev] Forums for swift.org workgroup: looking for volunteers

2017-11-17 Thread Dimitri Racordon via swift-dev
I’d be more than happy to help as well! > On Nov 16, 2017, at 12:39 AM, Nicole Jacque via swift-dev > wrote: > > As Ted Kremenek has previously announced, we are in the process of moving the > Swift mailing lists to Discourse. Previously the discussion was mostly about > moving swift-evolutio