Hacker News new | past | comments | ask | show | jobs | submit login

Greenlight if-branches and switch statements

OO cowboys will want to have a whole polymorphic soup of collaborating objects

Of Course! When I implement, say, Bubble Sort, I do not implement the classes BubbleList with the methods sort and addObject: anObject and BubbleObject with the method bubbleMaybe: aBubbleList, just to see my tests for BubbleObject fail when I switch to Quicksort.




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

Search: