On Thu, 2008-09-04 at 13:47 +1200, Amos Jeffries wrote:

> Kinkie, while I like the single-object API design. I think you could get
> around all these arguments and confusion by adding a sub-class of KBuf
> called KBufTokeniser, which just provides the nextToken API on top of the
> String API.

Please do not make Tokenizer a sub-class of Buffer or put it on top of
String. Tokenizer is not a String and is not a Buffer. It is an
Iterator. If String implementation is correct, the Tokenizer iterator
does not need to be a String to be efficient.

HTH,

Alex.


Reply via email to