5 ms·
I think his core assumption is wrong in this case, regardless of his feelings towards using List or not: You count the players on a team, not the team itself:
by danielhunt 13y ago
I think his core assumption is wrong in this case, regardless of his feelings towards using List or not:
You count the players on a team, not the team itself: team.count() means nothing
Team.players.count() is correct
It would, in fact, be incorrect to even implement a List interface on his Team object
- habosa 13y agoI don't think that's correct. He thinks that a team IS a group of players. Just like a list IS a group of items. team.players.count is like list.items.count But that's a small point, in general I agree that he should not be inheriting from List here.