Martin C. Martin wrote:
> Recently there was some mention of using the visitor pattern to visit
> every node, versus a recursive overloaded function.  What do people see
> as the advantage of one over the other?  The recursive way seems
> simpler, but recursion in general is confusing to many, so the visitor
> pattern might be easier to understand.  Is there any other trade off?

One of the differences is that one is currently in place while the other
requires a large refactoring.

Apart from that, I don't see a major (dis-)advantage of either of the two,
although I might find the recursive approach simpler as well (or at least
more obvious).

Stefan

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to