re: Pseudo Traits in C# VIEW POST

TOP OF THREAD FULL DISCUSSION
re: What is the point of having Trait class here instead of traits being just an empty interface? Just to know it is a "pseudo trait"?
 

It's a filter/grouping, so you know that what you're extending is definitely a (pseudo) trait. You can do without it - it's definitely a stylistic choice. But I like the safety of it. Your CanRoll or CanBounce fall in the same category of trait classes.

code of conduct - report abuse