You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Daniel Kuppitz (JIRA)" <ji...@apache.org> on 2015/09/10 19:41:46 UTC

[jira] [Commented] (TINKERPOP3-837) Make P.between symmetrical

    [ https://issues.apache.org/jira/browse/TINKERPOP3-837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14739214#comment-14739214 ] 

Daniel Kuppitz commented on TINKERPOP3-837:
-------------------------------------------

Note that exclusive would be the same as {{inside(x, y)}} and inclusive would be the same as {{not(outside(x, y))}}.

{{inside}} means: {{value > x && value < y}}
{{outside}} means: {{value < x || value > y}}

> Make P.between symmetrical
> --------------------------
>
>                 Key: TINKERPOP3-837
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-837
>             Project: TinkerPop 3
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.0.1-incubating
>            Reporter: pieter martin
>            Assignee: Marko A. Rodriguez
>
> {{P.between}} implements {{Compare.gte}} and {{Compare.lt}}
> This is asymmetrical and counter intuitive.
> Can we change it to be {{Compare.gt}} and {{Compare.lt}} or
> {{Compare.gte}} and {{Compare.lte}}
> Either inclusive or exclusive but not asymmetrical as it is now.
> I would vote for exclusive as it is arguably close to the English meaning of between.
> According to Daniel on the forum this was done for historical pragmatic reasons via Matthias and the old {{.interval()}} step.



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