• Why is there no Positionable Stream>>#previous:

    From Joachim@21:1/5 to All on Wed Dec 28 02:28:33 2016
    Hi,

    this may ba a stupid question, but I wonder why Streams, especially PositionableStream and subclasses do not provide methods like:

    previous
    previous:

    Pharo implements back and backUpTo:, but misses back: , which , in my opinion would be a misnomer (which back also is, IMO), because it not only skips back, but also returns the object(s).

    I am well aware that back: would brin gup some questions, like in what order do I want to get the previous 5 characters?

    It seems Streams are mostly aimed at going forward, even though you can use position: to go to any object in the underlying collection. So does anyone happen to know why the godfathers of Smalltalk didn't include these methods?

    Joachim

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)