New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
document this.traverse
vs this.visit
#126
Comments
When a visitor method like The most convenient/common way to do that is simply to call In hindsight, it might have made more sense to call In more complicated cases like yours, it's probably better to avoid Just be careful you don't call |
That is actually what I just did about 15 minutes ago, and it precipitated the "aha moment" where I figured it out myself. Was coming back here to answer my own question, but (as always) you were lightning quick with a great answer. Thanks! FWIW, I think the names are fine. But I didn't see any documentation on |
this.traverse
vs this.visit
update: now that my original question has been answered, This issue is now a request for documentation. Leaving it open because the discussion below is a good starting point for a PR.
Original Post
First a simple explanation of my goal and what I tried
See the comments about using
this.traverse(path.get('test'));
. What is the difference between thethis.traverse
andthis.visit
? When is it appropriate to use one over the other?The text was updated successfully, but these errors were encountered: