I don't like the idea to rename it, given that we have a long-term plan to implement (you'll find a ticket if you dig deep enough):
- union() (done) - difference() (tbd) and - intersect() (tbd) Cheers, Daniel On Thu, Oct 15, 2015 at 3:53 PM, Marko Rodriguez <[email protected]> wrote: > Hello, > > We use the term "union()" to describe the n-furcation of a traverser > across n-(nested)traversals. The union()'ing happens at the end when the > n-parallel-streams get merged/unioned back to one. Given that Gremlin is > read left-to-right, it feels more natural (for me) to say "split()" as that > is what is happening on the left of the union(). Yes, like TinkerPop2. > > > g.V.union(out('knows'), in('created')).name > > VS. > > g.V.split(out('knows'), in('created')).name > > > The top you are interpreting, union the results of the two internal > traversals. Where the assumption is split at the beginning. > The bottom you are interpreting, split the traverser across the two > internal traversals. Where the assumption is union at the end. > > For me the latter gives the more "particle" perspective to Gremlin, while > the former gives the more algebraic perspective. > > Note that this would be a straightforward deprecation as its a rename with > no semantic alteration. > > Thoughts?, > Marko. > > http://markorodriguez.com > >
