Hi,

Am Montag, den 31.01.2011, 13:19 +0000 schrieb Alexander Klimetschek: 
> Hi again,
> 
> could I assume silent agreement to this feature? ;-)

Sorry, to not have spoken up till now -- consider this silent
disagreement ;-)

Point is, as Bertrand pointed out, the proposal results in fragile
behavior.

In addition the values of a multi-value property is not a set of value
but an array of values, which means there can be duplicates and the
values are ordered.


Thus, while agreeing with the fact, that it looks like making
applications simpler to only be required to supply a +/- list, it is
probably not that easy...

To make it stable (or more stable if you wish), we would need the
following operations:

   prop[idx]=value -- set(idx, value); replace value at position idx
   prop[idx]-      -- remove(idx); remove value at position idx
                      (moving all elements at idx+1..len-1)
   prop[idx]+value -- insert(idx, value); insert value at position idx
                      (moving all elements at idx..len-1)
   prop+value      -- append(value); append value to the end

It is still not idem-potent, but neither is a POST request
to /some/location/ which generates a new node on each request. But it is
more stable and easier to implement.

WDYT ?

Regards
Felix



Reply via email to