Created
August 6, 2019 11:56
-
-
Save pofat/61a4f4a8b263f442fc8c8cc60ab44c42 to your computer and use it in GitHub Desktop.
兩種宣告方式之間有什麼差異?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 會帶真實型別進去 | |
func doSomething<T: MyPotocol>(_ arg: T) { } | |
// 有 existentail container | |
func doSomething(_ arg: MyProtofcol) { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
existential?