对于 Traits,我应该使用 T 前缀吗?如果是,请将其放在任何其他前缀之前还是之后?
在 Pharo+Squeak 中创建特征时,使用 T 前缀(如 TMyTrait)是否正确?如果是,T 应该在任何其他前缀(如 TMPMyTrait)之前(其中“MP”是其他前缀),还是在之后,如 MPTMyTrait
When creating Traits in Pharo+Squeak, is it proper to use a T prefix like TMyTrait and if yes, should the T go before any other prefix like TMPMyTrait (where "MP" is the other prefix), or after, like MPTMyTrait
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这只是一个帮助您理解所写内容的约定。
所以是的,添加 T。
始终在开头添加 T,这样您就可以立即看到它是一个 Trait
干杯
This is only a convention that help you understand what your are writing.
So yes add the T.
Always add the T at the beginning so you can immediately see that it's a Trait
Cheers