&gt; with modern VM technology it&#x27;s (pattern visitor) way more innefficient than pattern matching<p>Can someone explain that bit? Visitor pattern is 2 virtual calls. That should be very efficient. How pattern matching is more efficient?