https://kotlinlang.org logo
#announcements
Title
# announcements
p

pniederw

02/01/2017, 6:33 AM
perhaps the best alternative to visitor is to turn
Node
into a
sealed
class, then “pattern match” using
when (node) { is NodeImpl1 -> …; is NodeImpl2 -> … }
.