I'd say 99% of tp3's users are algebraic thinkers.

Your average user (maybe even non programmers) would understand the
semantics of union(a,b) (read as everything in English is from left to
right) easier than a split(a,b) which  also happens to union.

Cheers
Pieter

On 15/10/2015 15:53, Marko Rodriguez 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
>
>

Reply via email to