开发者

With Traits, should I use a T prefix and if yes put it before or after any other prefix?

开发者 https://www.devze.com 2023-01-06 03:06 出处:网络
When creating Traits in Pharo+Squeak, is it proper to use a T prefix like TMyT开发者_JAVA技巧rait and if yes, should the T go before any other prefix like TMPMyTrait (where \"MP\" is the other prefix)

When creating Traits in Pharo+Squeak, is it proper to use a T prefix like TMyT开发者_JAVA技巧rait and if yes, should the T go before any other prefix like TMPMyTrait (where "MP" is the other prefix), or after, like MPTMyTrait


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号