Comment Comment by sunir I don't understand that page in the slightest, but a lot of if-cascades can be factored more cleanly using polymorphism.http://c2.com/cgi/wiki/wiki?PolymorphismVsSelectionIdiom(Disclaimer. I wrote the top of that wiki page in a former life.) parent sunir 12 years ago
http://c2.com/cgi/wiki/wiki?PolymorphismVsSelectionIdiom
(Disclaimer. I wrote the top of that wiki page in a former life.)