W3C home > Mailing lists > Public > public-ldp-wg@w3.org > December 2014

ldp-ISSUE-104 (pchampin): Negative indexes in Path expressions [LD Patch]

From: Linked Data Platform (LDP) Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Mon, 01 Dec 2014 16:09:15 +0000
Message-Id: <E1XvTXH-0004qw-H7@stuart.w3.org>
To: public-ldp-wg@w3.org
ldp-ISSUE-104 (pchampin): Negative indexes in Path expressions [LD Patch]

http://www.w3.org/2012/ldp/track/issues/104

Raised by: Pierre-Antoine Champin
On product: LD Patch

ISSUE-102 suggests that Slice expressions accept negative index, following Python (and other languages)'s convention to address elements from the end of the list.

If we do that, shouldn't we also allow negative indexes in Path expressions, like:

  Bind ?lastlang   <#tim> / ex:preferredLanguages / -1 .

if only for the sake of consistency?
Received on Monday, 1 December 2014 16:09:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:11:59 UTC