Some Random Notes

Home

❯

02-Deep-Dive

❯

01.2-Design Pattern

❯

Types

❯

2-Behavioral

❯

Visitor

Visitor

Oct 18, 20261 min read

Visitors also arose out of a need to be able to add behaviors to an interface, but without modifying the implementations of other classes.

Q :

Why use visitors when you have switch with pattern matching in Java? https://www.reddit.com/r/programming/comments/1pepblq/comment/nsi2j8m/ https://www.reddit.com/r/programming/comments/1pepblq/comment/nsruhlf/


Backlinks

  • Base Checking
  • Untitled

Created with Quartz v5.0.0 © 2026

  • GitHub