Re: [PHP-DEV] Re: TextIterator changes

2006-07-11 Thread Andrei Zmievski
I think I'm done with TextIterator for now. Feel free to play with it. :) -Andrei On Jun 25, 2006, at 11:15 PM, Soenke Ruempler wrote: Michael Wallner wrote on Friday, June 23, 2006 11:27 PM: Andrei Zmievski wrote: TextIterator does not implement Iterator interfa

RE: [PHP-DEV] Re: TextIterator changes

2006-06-25 Thread Soenke Ruempler
Michael Wallner wrote on Friday, June 23, 2006 11:27 PM: > Andrei Zmievski wrote: >> TextIterator does not implement Iterator interface, only >> Traversable. It just happens to have functions of the same name as >> Iterator. > > Ah, okay. > That leaves the picky OO str

[PHP-DEV] Re: [PHP-I18N] Re: [PHP-DEV] Re: TextIterator changes

2006-06-24 Thread Andrei Zmievski
Thanks, I know what they are for. I remember discussing Iterator vs. Traversable with you on IRC, and for some reason we settled on Traversable. Anyway, I'm changing it now. -Andrei On Jun 24, 2006, at 2:35 AM, Marcus Boerger wrote: Hello Andrei, you should reconsider giving it full it

[PHP-DEV] Re: [PHP-I18N] Re: [PHP-DEV] Re: TextIterator changes

2006-06-24 Thread Marcus Boerger
Hello Andrei, you should reconsider giving it full iterator interface. Adding more functionality is of course quite easy and no problem at all. Sharing an interface also makes the whole thing feel much better as in no conflicts as in consistent. Actually that's what interfaces are for. Friday,

Re: [PHP-DEV] Re: TextIterator changes

2006-06-23 Thread Michael Wallner
Andrei Zmievski wrote: TextIterator does not implement Iterator interface, only Traversable. It just happens to have functions of the same name as Iterator. Ah, okay. That leaves the picky OO strictness I personally don't like. I think we should give PHP some freedom back in this area. Regard

Re: [PHP-DEV] Re: TextIterator changes

2006-06-23 Thread Andrei Zmievski
TextIterator does not implement Iterator interface, only Traversable. It just happens to have functions of the same name as Iterator. -Andrei On Jun 23, 2006, at 2:16 PM, Michael Wallner wrote: Andrei Zmievski wrote: I am working on implementing BreakIterator API [1]. I considered two approa

[PHP-DEV] Re: TextIterator changes

2006-06-23 Thread Michael Wallner
Andrei Zmievski wrote: I am working on implementing BreakIterator API [1]. I considered two approaches: making a separate class or merging the API into the existing TextIterator. Having a separate class would be a bit cleaner, but I can see people wanting to use it in foreach(), and since TextI