[squeak-dev] Invariants give guidance here (was Re: A question about #beginsWith: and #endsWith:)

Eliot Miranda eliot.miranda at gmail.com
Tue Apr 26 00:54:38 UTC 2022


On Mon, Apr 25, 2022 at 4:14 PM David T. Lewis <lewis at mail.msen.com> wrote:

> On Mon, Apr 25, 2022 at 09:44:54PM +0200, Tony Garnock-Jones wrote:
> > On 4/25/22 21:20, Eliot Miranda wrote:
> > >See Collections-eem.1007 in inbox for a proposed fix.
> >
> > I like it. Nice and simple. +1
> >
>
> +1
>
> Note there is a minor editing slip in SequenceableCollection>>endsWith:
> on line 6, where "sequenceSize" can be used instead of "sequence size".
>

Thanks! Committed Collections-eem.1008

A note to other method comment authors, the "Answer if ..." form was first
pointed out to me by Adele Goldberg at ParcPlace. It is to be preferred
over "Answer true if..." which begs the question what to answer if false ;-)

_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220425/7d7a3704/attachment.html>


More information about the Squeak-dev mailing list