[squeak-dev] The Trunk: Monticello-ct.715.mcz

Jakob Reschke forums.jakob at resfarm.de
Sat Apr 11 18:52:36 UTC 2020


Am Sa., 11. Apr. 2020 um 16:42 Uhr schrieb Thiede, Christoph
<Christoph.Thiede at student.hpi.uni-potsdam.de>:
>
> I could not find your previous mail on the list, too! However, we're back on the list now :)

Oh, it was indeed my mistake, sorry.

Quick summary for the others: I doubted that there is a use case to
get the incomplete list of orderedItems and thus voted to change it.
Christoph argued that it is strange to let the accessor method return
anything else than the instance variable of the same name.

>
> Hm ... what about deprecating #orderedItems and introducing a new #allItems instead? Then we could avoid any internal confusion and had a stable public protocol.
>

I'd say the other way around: introduce a new selector for the new
behavior (if necessary) and leave the observable behavior of
orderedItems as it was. Rename the instance variable accordingly if
necessary, as the variable is an implementation detail, the selector
is not.


More information about the Squeak-dev mailing list