From 960a93831c8660ba5375c6a8a680c3e4069605af Mon Sep 17 00:00:00 2001 From: varunudacity Date: Thu, 22 Nov 2018 02:33:43 -0500 Subject: [PATCH] Fix possible inaccuracy for Swift Language It seems that the Equatable protocol may be defined here: https://github.com/apple/swift/blob/master/stdlib/public/core/Equatable.swift I'm not a swift expert by any means, but it does appear that it's definable within the language. --- design/go2draft-generics-overview.md | 1 - 1 file changed, 1 deletion(-) diff --git a/design/go2draft-generics-overview.md b/design/go2draft-generics-overview.md index cad240d7..a70fa642 100644 --- a/design/go2draft-generics-overview.md +++ b/design/go2draft-generics-overview.md @@ -822,7 +822,6 @@ The Declaring that `T` satisfies the [`Equatable`](https://developer.apple.com/documentation/swift/equatable) protocol makes the use of `==` in the function body valid. -`Equatable` appears to be a built-in in Swift, not possible to define otherwise. Like Rust, Swift avoids Java’s and C#'s curiously recurring interface pattern for direct self-reference by introducing a `Self` type. For example, the protocol for having an `Equals` method is: