So I believe that I understand the fundamentals to implementing a visitor pattern, but what happens when there are too many concrete elements causing the visitor to be forced to include hundreds of methods to address each of these elements?
Would it be better to implement an alternative (ex. reflective visitor or dynamic dispatching visitor) or attempt to implement normal form visitor to that which already exists?
tl;dr: Visitor class is huge (>4000 lines) due to hundreds of concrete elements, what should I do?
Aucun commentaire:
Enregistrer un commentaire