W3C home > Mailing lists > Public > public-rif-wg@w3.org > June 2009

added append() and removed position-truncation

From: Sandro Hawke <sandro@w3.org>
Date: Thu, 04 Jun 2009 22:04:35 -0400
To: public-rif-wg@w3.org
Message-ID: <24997.1244167475@ubehebe>

As per ACTION-819 I added append to DTB.  It wasn't recorded there, but
while I was doing it, I remember that I was supposed to remove the rule
that too-high indexes were changed to be only 1 too high (which was
needed for insert-before to act like append.)  Given that, it seemed
right to also remove the rule that had made indexes before the start of
a list turn into zero.  Now positions which are not actually positions
of some item in the list (ie are <0 or >= len) result in "unspecified"
semantics.  (In my Python implementation [1], they raise IndexError).



      -- Sandro

[1] http://dev.w3.org/cvsweb/2009/rif/list_builtins.py?rev=1.6&content-type=text/x-cvsweb-markup
Received on Friday, 5 June 2009 02:04:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:07:58 UTC