Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
前段时间traits看代码时,我跌跌撞撞。C++如果我没记错的话,它们被用来定义字符之外的字符串。有人告诉我,也可以用特征定义某种“字符串” double——我不太明白。
traits
C++
double
今天我读了一篇关于面向方面编程的文章,其中他们将特征和 mixin 相提并论。那么,traits 和 mixin 到底是什么?他们存在的权利是什么?