Daniel Sun created GROOVY-9056:
----------------------------------

             Summary: Rename method `visit` of `ASTNode` to `accept` and add an 
alias method `visit`
                 Key: GROOVY-9056
                 URL: https://issues.apache.org/jira/browse/GROOVY-9056
             Project: Groovy
          Issue Type: Improvement
            Reporter: Daniel Sun
            Assignee: Daniel Sun
             Fix For: 3.0.0-beta-1


According to the naming conventions of Visitor Pattern( 
[https://en.wikipedia.org/wiki/Visitor_pattern#Java_example] ), we should 
rename method `visit` of `ASTNode` to `accept`, but we have to add an alias 
method `visit` for back compatibility.

 

SEE the discussion in the dev mailing list: 
http://groovy.329449.n5.nabble.com/Rename-method-visit-of-ASTNode-to-accept-tt5757320.html



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to