When replacing if's w/sub-type polymorphism, the if's don't disappear; they move to a factory or similar. Correct? http://alisnic.github.com/posts/ifless/
@davetchepak if is cata for boolean. The dogma of no if/switch is misguided at best.
-
-
@dibblego My point was even with no ifs, they still pop up in the object creation code. The logic's gotta be somewhere right? -
@davetchepak Exactly. Silly misguided dogmas are benign at best, but are usually dangerous in practice.
End of conversation
New conversation -
-
-
@dibblego So we can "Replace Conditional with Polymorphism" refactor all we like, we're still going to get an if/switch in a factory. -
@davetchepak you're not achieving anything, just like replacing List with foldMap doesn't. The illusion of betterment is the danger.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.