[swift-evolution] [Review] SE-0091: Improving operator requirements in protocols

David Sweeris davesweeris at mac.com
Mon May 23 23:20:21 CDT 2016


> On May 18, 2016, at 18:07, plx via swift-evolution <swift-evolution at swift.org> wrote:
> 
> How hard would it be to e.g. simply allow something like this:
> 
>  func ==<T:Equatable>(lhs: T, rhs: T) -> Bool {
>    return lhs T.== rhs
>  }
> 
> …instead of the `T.==(lhs,rhs)` syntax?

Yeah, I've been meaning to suggest that. And 'T.++(x)' and '(x)T.++' for prefix and postfix, respectfully.

- Dave Sweeris


More information about the swift-evolution mailing list