Latest writing
最新文章
存在类型 (existential type)
存在类型(existential type), 表示某个类型存在, 设Trait A, 则some A表示存在某个类型符合A特征; 与存在类型相对应的为任意类型, any A表示负责A特征的任意类型.
574 字|3 分钟
Latest writing
存在类型(existential type), 表示某个类型存在, 设Trait A, 则some A表示存在某个类型符合A特征; 与存在类型相对应的为任意类型, any A表示负责A特征的任意类型.