[
https://issues.apache.org/jira/browse/TINKERPOP3-818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14720605#comment-14720605
]
Marko A. Rodriguez commented on TINKERPOP3-818:
-----------------------------------------------
I don't know. Haven't thought it through. What do you recommend? What is nice
about Groovy is {{Vertex}} is equivalent to {{Vertex.class}}. Thus, probably
{{P.type(Class)}} and in Groovy it look like {{g.V..is(type(Vertex))}}. Then
you can also do: {{g.V...is(type(String))}}. Enum seems a bit brutal as you
have to list all things.
> Consider a P.instanceOf()
> -------------------------
>
> Key: TINKERPOP3-818
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-818
> Project: TinkerPop 3
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.0.0-incubating
> Reporter: stephen mallette
> Assignee: Marko A. Rodriguez
> Priority: Minor
>
> A predicate that checks the type of the value passing through the traversal.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)