Cole-Greer commented on code in PR #3209:
URL: https://github.com/apache/tinkerpop/pull/3209#discussion_r2373005488


##########
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/TraversalParent.java:
##########
@@ -31,14 +33,31 @@
 import java.util.Set;
 
 /**
+ * Indicates that a step can contain child Traversals. Any step which 
implements this interface should override at least

Review Comment:
   That's definitely a compelling idea and would be an improvement over the 
status quo. I'm not sure about half starting it here in this PR though. I would 
rather such a change be made all at once, as I'm worried there are a few steps 
which will be difficult to adapt to the annotation model, and may require 
tweaking the design. The steps which come to mind which may be difficult are 
the ones like AddEdge which currently shove all of their arguments into a 
`Parameters` object and use that to manage child Traversals.
   
   I think this might make for a good JIRA. I don't think it's prohibitively 
large to tackle all at once as a standalone task. There's only about 60 
implementations of TraversalParent when you factor out abstract classes and 
such, and there's really only a handful of unique patterns within those, they 
are mostly simple and repetitive.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to