Re: [SMW-devel] ArrayAccessor

2013-08-14 Thread Jeroen De Dauw
I'm not against wrapping an array. My concern with the current approach is that it exposes all lot of not needed methods that replacements will have to implement. Simply implementing iterator would be better then deriving from arrayobject. At least when the actual class is being passed around

[SMW-devel] ArrayAccessor

2013-08-08 Thread Jeroen De Dauw
Hey, I'm not sure what the use for the newly introduced ArrayAccessor class is. It seems to not be providing a lot of functionality on top of ArrayObject. And I found that one rarely actually needs the functionality ArrayObject provides. And when one does not need it, it is better to not have it,

Re: [SMW-devel] ArrayAccessor

2013-08-08 Thread James HK
Hi, ArrayAccessor is used in several classes[1] to conveniently access an array through object methods. Of course one could make use of the ArrayObject directly but one would need to implement the expectation handling individually for when an expected element is not accessible. Accessing an