Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



I 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: