News for hackers. Stuff that matters.
Re:Inheritance Is Terrible by thomasahle on Saturday March 19, 2016 @05:51PM (#11320647)
'item.add_to(cart)' seems to work fine from a gramatical point of view. It's only when we think in terms of ownership "The cart should own the item" that we choose the right order, no?
Re:Inheritance Is Terrible by wvenable on Saturday March 19, 2016 @05:53PM (#11320652)
cart.add(item) is also grammatical and less conceptually complex than any sort of "add_to" construct.