You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by Marko Rodriguez <ok...@gmail.com> on 2015/01/23 19:19:55 UTC

Re: [TinkerPop] Re: [TinkerPop3] Branch-Step Redesign -- union() and choose() are simply extension.

Hi Matt,

We just changed it to option().
	branch().option().option().option()
	choose().option().option().option()
The problem with "choice" is that is seems too tied to choose()-step.

What do you think of option()?

Thanks,
Marko.

http://markorodriguez.com

On Jan 23, 2015, at 11:09 AM, Matt Frantz <ma...@gmail.com> wrote:

> On Thursday, January 22, 2015 at 5:27:24 PM UTC-8, Marko A. Rodriguez wrote:
> [snip]
>  
> I don't like the name fork(), but now you no longer have to create that lame 'ol Map<M,Traversal> which is ugly in Java… Now you can just choose().fork().fork().fork(). Likewise for branch() and union(), though because union() is a fork on Pick.any, the var args union(traversal…) remains. Again, Daniel and I couldn't come up with a better name for fork(), so if someone has an idea, bust it out.
> [snip]
> 
> How about "choice"?  It seems to pair nicely (and grammatically) with "choose". 
> 
> -- 
> You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/f99b69c5-3097-45ab-b76b-10c9a0de1ed3%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


Re: [TinkerPop] Re: [TinkerPop3] Branch-Step Redesign -- union() and choose() are simply extension.

Posted by Daniel Kuppitz <da...@shoproach.com>.
Hi Matt,

it's very important to avoid conflicts with reserved keywords (of JVM 
languages). It can be quite annoying; I bet we already needed every keyword 
that currently exists (for, while, switch, case, to name a few) :)

Cheers,
Daniel


Am Freitag, 23. Januar 2015 19:49:32 UTC+1 schrieb Matt Frantz:
>
> On Friday, January 23, 2015 at 10:19:59 AM UTC-8, Marko A. Rodriguez wrote:
>>
>> Hi Matt,
>>
>> We just changed it to option().
>> branch().option().option().option()
>> choose().option().option().option()
>> The problem with "choice" is that is seems too tied to choose()-step.
>>
>> What do you think of option()?
>>
>>
> Yes, "option" works for me.  After I suggested "choice", I realized I 
> hadn't considered the other use cases (branch, union).  I think "case" also 
> has merit.  How important is it to avoid conflict with reserved words in 
> various languages? 
>

Re: [TinkerPop] Re: [TinkerPop3] Branch-Step Redesign -- union() and choose() are simply extension.

Posted by Matt Frantz <ma...@gmail.com>.
On Friday, January 23, 2015 at 10:19:59 AM UTC-8, Marko A. Rodriguez wrote:
>
> Hi Matt,
>
> We just changed it to option().
> branch().option().option().option()
> choose().option().option().option()
> The problem with "choice" is that is seems too tied to choose()-step.
>
> What do you think of option()?
>
>
Yes, "option" works for me.  After I suggested "choice", I realized I 
hadn't considered the other use cases (branch, union).  I think "case" also 
has merit.  How important is it to avoid conflict with reserved words in 
various languages?