[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [sdo] [NEW ISSUE]: Remove the {property '.' index_from_0} from sdo xpath syntax
From a C++ point of view where all arrays
are indexed with 0 it is more intuitive for some of our customer base to use
the .0 syntax. It makes using the data object more intuitive for people
who have mainly used 0 based indexing in the past. You don’t have to use
the .0 base indexing if you want to just use [1]. Removing it from the
specs first forces everyone to do it one way that might not be familiar or intuitive
for them. Secondly, it would be breaking usage for people who are use to SDO
that have always used the .0 syntax and migration could be a real pain. I brought this next point up briefly in
the F2F, but I think it relates to this issue too. Things that make the
SDO language specific seem like a bad idea to include in the SDO spec.
Since different languages use 0 base indexing vs. 1 base indexing it seems
pretty great to have the spec include both ways as convince since I would say
most programmers are from a 0 based indexed system yet a 1 based index system
is used in several systems as well. Thanks, James From:
Yang,Hongbo [mailto:yanghb@primeton.com] Hi
all, In
SDO2.1 ,there is both | property '.' index_from_0 and
| property '[' index_from_1 ']' in
syntax of xpath. It
has two defects : firstly,index_from_0 is not subset of xpath as described in SDO 2.1 secondly,
'.' is not conveniently to combime with OGNL or web FrameWork. So i
suggest to remove the '.' index_from_0 from SDO in 3.0 Thanks, Hongbo |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]