[ 
https://issues.apache.org/jira/browse/TINKERPOP3-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marko A. Rodriguez closed TINKERPOP3-223.
-----------------------------------------
    Resolution: Won't Fix

This is DSL stuff. Will not do for {{GraphTraversal}}.

> On the fly custom steps in Groovy and Java8. (proposal)
> -------------------------------------------------------
>
>                 Key: TINKERPOP3-223
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-223
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.0.0-incubating
>            Reporter: Marko A. Rodriguez
>            Assignee: Marko A. Rodriguez
>
> {code:java}
> public static class CustomStepRegistry {
>   public static final Map<String,Step> customs;
>   public Step get(final String stepName);
> }
> {code}
> {code:java}
> g.V().custom("myStep",1,2,3).out().value("name") // looks into the custom 
> registry
> {code}
> {code:groovy}
> // sugar style
> g.V().myStep(1,2,3).out().value("name") // if method doesn't exist, look into 
> the custom registry
> {code}
> This is for short-term use. If people want to get crazy with custom steps, 
> they can create a DSL via extends {{Traversal.}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to