V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
x1aoYao
V2EX  ›  Swift

Swift 为什么要区分协议的关联类型与类的泛型?

  •  
  •   x1aoYao · Apr 20, 2021 · 2129 views
    This topic created in 1846 days ago, the information mentioned may be changed or developed.

    作为一个 Java/Kotlin 用户有点疑惑,<T>泛型的这个我明白。 那 associatedtype 区别于 generic 的是什么?类似 c++的 template 吗(不懂 c++)

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3879 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 04:47 · PVG 12:47 · LAX 21:47 · JFK 00:47
    ♥ Do have faith in what you're doing.