You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Matt Frantz (JIRA)" <ji...@apache.org> on 2015/06/09 18:42:00 UTC
[jira] [Created] (TINKERPOP3-717) assert step
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)