Usually, method lookup results in a single body to execute. This is analogous to the way pattern matching usually tries patterns in order, selecting just one continuation to execute.
What if,...
方法查找通常只执行一个主体,但如果允许所有匹配的模式同时执行,将会创建多个并发执行的分支,而不是互斥的超位置。可以先考虑顺序执行每个匹配的方法。