News for hackers. Stuff that matters.
Re:The Anti-If Campaign by tptacek on Thursday June 25, 2009 @11:31AM (#673816)
It's not about type fields and tag-and-switch. It's about the "if" statement. Let's be clear about how batsh*t crazy this messaging is.
Re:The Anti-If Campaign by scott_s on Thursday June 25, 2009 @11:35AM (#673824)
If you read their content (what little there is), it's type fields that they actually object against. I don't think they're actually saying "remove all ifs from code." If they are, then, yes, that would be batshit crazy. Instead of being crazy, though, I think they're just ineffective at communicating their message.
Re:The Anti-If Campaign by davidw on Thursday June 25, 2009 @03:48PM (#674270)
With pattern matching, you actually end up being able to mostly do away with if and switch statements, so it's not completely as crazy as it sounds. OTOH, sometimes pattern matching involves a lot of "repeating yourself", where you have to retype the function name, and a bunch of arguments, and only one changes.
Re:The Anti-If Campaign by tptacek on Thursday June 25, 2009 @11:59AM (#673877)
I agree with you: it's the messaging that's batsh*t crazy, not the idea.

The idea is just bad.