[swift-evolution] Proposal Idea: Use of == outside of comparisons should be treated as an error.

John Randolph jcr at mac.com
Tue Jan 12 14:39:16 CST 2016

> On Jan 11, 2016, at 12:45 PM, Joe Groff via swift-evolution <swift-evolution at swift.org> wrote:
> If it isn't already, the implementation of `==` ought to be marked with the `@warn_unused_result` attribute, which will give you a warning if the result is ignored. We're discussing making warn_unused_result the default behavior in another thread.
> -Joe

I’d consider that warning sufficient to keep me from making this mistake.  Making it an error seems like overkill.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160112/b1214007/attachment.html>

More information about the swift-evolution mailing list