[squeak-dev] Unexpected - Matrix>>at:at:ifInvalid:

Chris Cunningham cunningham.cb at gmail.com
Mon Nov 27 21:23:51 UTC 2017


Ok.  Proposed changes in the inbox.

I kept the #..ifInvalid: calls, as they turned out to be useful (so far).
But I definitely need the #...ifAbsent: varieties, besides them being the
more consistently named.

And, yes, added #at:at:ifAbsent: as well.  Although that feels to vague to
me.

-cbc

On Mon, Nov 27, 2017 at 1:35 AM, Tobias Pape <Das.Linux at gmx.de> wrote:

>
> > On 27.11.2017, at 09:08, Marcel Taeumel <marcel.taeumel at hpi.de> wrote:
> >
> > Hi Chris,
> >
> > sounds good. :) Add #row:column:ifAbsent: and deprecate
> #at:at:#ifInvalid:. I prefer "column" over "col".
> >
>
> Can we (also) have #at:at:ifAbsent: ? I think this would be niceā€¦
>
> Best regards
>         -Tobias
>
> > Best,
> > Marcel
> >> Am 26.11.2017 23:29:17 schrieb Chris Cunningham <
> cunningham.cb at gmail.com>:
> >>
> >> I expected the argument to the last par to the method to expect a
> block, but it expects an value (returned directly to the caller).  I would
> have expected it to behave like at:ifAbsent: instead (which expects the
> block and evaluates it and returns it if not found).
> >>
> >> Guess i'll add a different set of behaviors instead: #row:col:ifAbsent:
> which expects a block, say.
> >>
> >> Any other ideas?
> >>
> >> As another question, should the comment for Matrix be updated to not be
> a complete comparison between Matrix and Array2D, which is no longer in the
> image?
> >>
> >> Thanks,
> >> cbc
> >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20171127/38b735b4/attachment.html>


More information about the Squeak-dev mailing list