[ 
https://issues.apache.org/jira/browse/TINKERPOP-882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

stephen mallette closed TINKERPOP-882.
--------------------------------------
    Resolution: Incomplete

We all know this is a problem at this point....nothing has really presented 
itself as a nice solution. Going to close this with the idea that if a new idea 
pops up with a specific approach to making an improvement then we'll create a 
new JIRA around that.

> Develop a less error prone way for rewriting strategies
> -------------------------------------------------------
>
>                 Key: TINKERPOP-882
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-882
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.0.2-incubating
>            Reporter: Marko A. Rodriguez
>            Priority: Major
>
> When someone writes a {{TraversalStrategy}} it is of the nature:
> {code}
> if(step instanceof SelectStep && ((SelectStep)step).getLocalChildren().size() 
> > 1) {
>   TraversalHelper.insertStep(new IdentityStep(), step, traversal);
> }
> {code}
> It can start to get hairy looking fast. It would be great if we could study 
> the strategies we have thus far and see if there are patterns we can extract 
> encapsulate such behaviors in new methods in {{TraversalHelper}}. I don't 
> have any good ideas on how to do this, but I think we need it. My only 
> thought was a "regular expression" language for our traversals so we can 
> pattern match ON the traversal. 



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

Reply via email to