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

Marko A. Rodriguez closed TINKERPOP-1630.
-----------------------------------------
    Resolution: Won't Fix
      Assignee: Marko A. Rodriguez

The problem is as you mention -- what is {{String}} then? This is why 
{{constant()}} exists. Its not pretty, but what can be considered theoretically 
sound at this point in time. :| Closing. If you think we should focus on it for 
TinkerPop3, please re-open.

> Consider adding by(Object value)
> --------------------------------
>
>                 Key: TINKERPOP-1630
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1630
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.3.0
>            Reporter: Daniel Kuppitz
>            Assignee: Marko A. Rodriguez
>
> I often find myself writing stuff like {{sack(assign).by(constant(1))}}. 
> Would be nice if I could simply do {{sack(assign).by(1)}}.
> {noformat}
> public default GraphTraversal<S, E> by(final Object value) {
>     return by(__.constant(value));
> }
> {noformat}
> Downside: Might lead to confusion with Strings.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to