[
https://issues.apache.org/jira/browse/TINKERPOP3-837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14739672#comment-14739672
]
Matt Frantz commented on TINKERPOP3-837:
----------------------------------------
The precedent for the "half-open" (or "half-closed") interval exists in C++
iterator pairs. Certain operations on intervals are more convenient when they
are half-open. For example, if I have [a,b) and [b,c), then they combine as
[a,c) without overlap. I agree that we lack a linguistic precedent for this
asymmetry, but I'm not sure we should change the behavior for that reason alone.
> 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)