3 ms·
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
by scott_s 17y ago
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.
- tptacek 17y agoI agree with you: it's the messaging that's batsh*t crazy, not the idea. The idea is just bad.
- davidw 17y agoWith 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.