perhaps the best alternative to visitor is to turn...
# announcements
p
perhaps the best alternative to visitor is to turn
Node
into a
sealed
class, then “pattern match” using
when (node) { is NodeImpl1 -> …; is NodeImpl2 -> … }
.