Github user BrynCooke commented on the issue:

    https://github.com/apache/tinkerpop/pull/470
  
    The lambda traversal will throw a regular NoSuchElementException is it is 
unparented.
    However, won't this will only happen once? The exception will bubble up and 
out of the top level traversal?
    
    If they did this
    ```
    g.V().blah().map{ x -> 
      try {
        __.inject(x).will().not().have().anything().next()
        return "foo";
      }
      catch(NoSuchElementException e) {
        return "bar";
      }
    }
    ```
    instead of
    
    ```
    g.V().blah().map{ x -> 
      if(__.inject(x).will().not().have().anything().hasNext()) {
        return "foo";
      }
      else {
        return "bar";
      }
    }
    ```
    Then they would have a problem.
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to