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 A. Rodriguez (JIRA)" <ji...@apache.org> on 2017/07/12 20:54:00 UTC

[jira] [Closed] (TINKERPOP-1630) Consider adding by(Object value)

     [ 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)