Matt Frantz created TINKERPOP3-717:
--------------------------------------

             Summary: assert step
                 Key: TINKERPOP3-717
                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-717
             Project: TinkerPop 3
          Issue Type: Improvement
          Components: process
            Reporter: Matt Frantz
            Assignee: Marko A. Rodriguez


Consider a step that allows specifying a traversal that must be proven.  In 
conjunction with a strategy that removes such steps for "production", this 
would provide the "assert" capability in many languages.

{code}
GraphTraversal assert(Traversal t)
{code}

The logic would be that if {{t}} does not produce a traverser, then an 
assertion exception would be raised.

We probably can't call it {{assert}} because it is a reserved word in many 
languages.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to