[swift-evolution] 'T != Type' in where clause

Nicholas Maccharoli nmaccharoli at gmail.com
Tue Feb 28 00:53:30 CST 2017


+ 1
 I personally find this frustrating, but at the same time Im curious as to
what the argument against
introducing this is.

- Nick

On Tue, Feb 28, 2017 at 3:21 PM, David Sweeris via swift-evolution <
swift-evolution at swift.org> wrote:

>
>
>
> Sent from my iPhone
> > On Feb 27, 2017, at 16:34, Rex Fenley via swift-evolution <
> swift-evolution at swift.org> wrote:
> >
> > I often find myself running into situations where I'll receive
> "Ambiguous use of..." for overloaded functions or operators. In every case
> these situations would be easily solved if I could specify "Generic !=
> CertainType" in the where clause of one of the overloads so I can
> disambiguate the cases. Could this be added to language?
>
> + all the 1s, along with something like "where !(T: Foo)"
>
> IIRC, the topic has come up before, though I couldn't (quickly) find it
> and don't recall what the response was (other than some variation of "no",
> since we don't have it).
>
> - Dave Sweeris
>
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170228/73912031/attachment.html>


More information about the swift-evolution mailing list