Re: [swift-evolution] Fast String Comparison From String Arrays

2017-07-28 Thread Huon Wilson via swift-evolution
> On Jul 28, 2017, at 05:54, Omar Charif via swift-evolution > wrote: > > Hi, > > I wonder whether there is already a way in Swift to compare a string against > a large string array quickly without using the traditional ways of > comparison. > > Say we have

Re: [swift-evolution] [swift-evolution-announce] SE-0183 - Substring performance affordances

2017-07-20 Thread Huon Wilson via swift-evolution
> On Jul 19, 2017, at 16:16, Howard Lovatt via swift-evolution > wrote: > > The review of "Substring performance affordances" begins now and runs through > July 21, 2017. The proposal is available here: >

Re: [swift-evolution] Overloading Generic Types

2017-02-22 Thread Huon Wilson via swift-evolution
> On Feb 22, 2017, at 10:20, David Sweeris via swift-evolution > wrote: > > What if we extended that to any type that’s ExpressibleByNilLiteral & > Equatable? Note that this is not how the Unsafe*Pointer optimization works: in that case, the type Unsafe*Pointer is

Re: [swift-evolution] Why doesn't Collection's SubSequence conform to Collection?

2017-02-13 Thread Huon Wilson via swift-evolution
The lines just after the current declaration show the desired version, which is waiting on two generics features that are in the pipeline: // FIXME(ABI)#98 (Recursive Protocol Constraints): // FIXME(ABI)#99 (Associated Types with where clauses): // associatedtype SubSequence : Collection

Re: [swift-evolution] guard let x = x

2016-10-28 Thread Huon Wilson via swift-evolution
> On Oct 28, 2016, at 16:45, Erica Sadun wrote: > > >> On Oct 28, 2016, at 5:00 PM, Huon Wilson > > wrote: >> >> >>> On Oct 28, 2016, at 15:34, Erica Sadun via swift-evolution >>>

Re: [swift-evolution] guard let x = x

2016-10-28 Thread Huon Wilson via swift-evolution
> On Oct 28, 2016, at 15:34, Erica Sadun via swift-evolution > wrote: > > Detailed > Design > > unwrap can be used with any one-value enumeration. The unwrapped value is > bound to

Re: [swift-evolution] Proposal: Package Manager Version Pinning

2016-10-14 Thread Huon Wilson via swift-evolution
> On Oct 14, 2016, at 09:43, Alexis via swift-evolution > wrote: > > A library shouldn’t pin its dependencies, while an application should. Not only “shouldn’t” but can’t: Rust’s cargo (I don’t know for sure about Bundler and Yarn, but they’re all in the same vein,