<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Finally merged via Collections-mt.1009 and CollectionsTests-mt.376.<div><br></div><div>The #old* interface is not yet deprecated but tested.</div><div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div><blockquote class='history_container' type='cite' style='border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;'>
                        <p style='color: #AAAAAA; margin-top: 10px;'>Am 09.08.2020 00:10:20 schrieb David T. Lewis <lewis@mail.msen.com>:</p><div style='font-family:Arial,Helvetica,sans-serif'>On Sat, Aug 08, 2020 at 04:21:27PM -0500, Chris Muller wrote:<br>> ><br>> > > I can see the nil being returned there explicitly, so that's "where it's<br>> > happening." Should this be the case though?<br>> ><br>> > The previous, probably original implmenetation of #peekBack used to send<br>> > #oldBack to the stream.<br>> > IIRC #oldBack was based on the idea that the position of a stream is an<br>> > index of a sequence where #next means +1 to that index while #back means<br>> > -1 to that index. Following that logic, you have to #skip: -2 and send<br>> > #next to get the element -1 to position.<br>> ><br>> > #oldBack has been removed but the behavior of #peekBack is presumably the<br>> > same as it was before. Some ancient but now external code may rely on<br>> > #peekBack but it's not very likely such code would work in the current<br>> > Trunk.<br>> > #peekBack has no real users in the Trunk only a test remembers what it<br>> > used to do.<br>> ><br>> <br>> Given the above, and given that we have #next:, I ended up balancing that<br>> API with #peek:, and that again with #peekBack:.  Since they all simply<br>> return a String, possibly empty, they dodge the question about nil vs.<br>> error entirely.<br>> <br>> So, I think it's a good time to change its behavior to be based on #back.<br>> ><br>> <br>> Without wanting to sound ungrateful for Eric's contribution (of which I<br>> look forward to more of), may we also consider the addition-by-subtraction<br>> opportunity?  I mean, it kinda makes sense that there wouldn't, and won't,<br>> be any users of #peekBack.  Maybe we should deprecate it.<br>> <br><br>That's probably the best idea of all.<br><br>As far as I can tell, #peekBack was used in PositionableStream>>#backChunk<br>in the Squeak 3.8 era, but Levente's 3/22/2010 version of the method in<br>trunk today eliminated the need for it.<br><br>So given that nobody uses it and we don't know how it should work, +1 for deprecation.<br><br>And +1 to looking forward to more contributions from Eric :-)<br><br>Dave<br><br><br></div></blockquote>
                                        </div></body>