[squeak-dev] Deprecating #ifNotNilDo: & friends

christoph.thiede at student.hpi.uni-potsdam.de christoph.thiede at student.hpi.uni-potsdam.de
Tue Sep 7 21:55:45 UTC 2021


FYIO: https://sourcegraph.com/search?q=context:global+ifNotNilDo:+lang:Smalltalk+&patternType=literal

Among others, Seaside, SqueakJS/Caffeine, Squot, and many others still use this selector. It was a good idea not to deprecate it in the hard way. :-)

Best,
Christoph

---
Sent from Squeak Inbox Talk

On 2021-09-05T16:17:53+02:00, marcel.taeumel at hpi.de wrote:

> Hi Levente --
> 
> +1 Thanks for doing this :-)
> 
> Also thanks for the test, which is a great help also during release preparation.
> 
> Best,
> Marcel
> Am 03.09.2021 20:43:10 schrieb Levente Uzonyi <leves at caesar.elte.hu>:
> Hi All,
> 
> We already have #ifNotNil: which has been doing the same thing as
> #ifNotNilDo: for about 10 years now.
> The idea is to deprecate #ifNotNilDo: softly, without raising a warning on
> usage just like how it's done with #doWithIndex:.
> The inbox entries 60Deprecated-ul.96 and Kernel-ul.1409 contain the
> necessary changes, while KernelTests-ul.405 has an additional test to
> verify that no methods use #ifNotNilDo:.
> 
> 
> Levente
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210905/51131ece/attachment.html>
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210907/fda707b7/attachment.html>


More information about the Squeak-dev mailing list