W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2003

F&O: subsequence and item-at

From: Oliver Becker <obecker@informatik.hu-berlin.de>
Date: Mon, 20 Jan 2003 16:00:47 +0100 (MET)
Message-Id: <200301201500.h0KF0lj26663@mail.informatik.hu-berlin.de>
To: public-qt-comments@w3.org

Hello,

concerning the subsequence function I would suggest to specify it
similary to substring. This would be consistent and answer such
questions like "what if $startingLoc is negative" etc.

Additionally, item-at($seq, $pos) should IMO return the same as
subsequence($seq, $pos, 1)
i.e. instead of raising an error "Invalid position" this function
would return the empty sequence if $pos is out of bounds.
This poses the question if item-at is necessary at all, since
subsequence($seq, $pos, 1) would do the task.

Kind regards,
Oliver


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@informatik.hu-berlin.de             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/
Received on Monday, 20 January 2003 10:23:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:23 GMT