I have been trying to explain the difference between switch statements and pattern matching(F#) to a couple of people but I haven't really been able to explain it well..most of the time they just look at me and say "so why don't you just use if..then..else".
你要怎么跟他们解释?
编辑! 感谢每个人的伟大的答案,我真的希望我可以标记多个正确的答案。