Github user FlorianHockmann commented on the issue:

    https://github.com/apache/tinkerpop/pull/816
  
    >I think this is a good change though it doesn't exactly mimic the Java API 
right? there is no until(P) in java - it's until(Predicate), but I guess that 
doesn't really make sense in this GLV to support something like that because we 
can really only serialize values of P across to the server.
    
    This will be changed with PR #815 that introduces new interfaces, one of 
which is `IPredicate` that we use in Gremlin.Net in places where Java uses 
`Predicate`. My idea was that users could write either predicates in the form 
of lambdas (PR #814) or implement their own predicates which would also require 
their own serialization. Geo-predicates or full-text search are an example 
where implementing custom predicates like this would make sense.
    
    I'll add something for the upgrade docs. Although it will probably just 
concentrate on cases where users already implemented their own predicates as 
there should be no visible changes for users that only used our predicates. 
`P.gt(1).and(P.lt(3))` can still be called exactly the same way. The only 
difference is that they now get back a `P` object instead of a 
`TraversalPredicate`.


---

Reply via email to