[squeak-dev] The Trunk: Collections-mt.851.mcz

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Wed Sep 4 21:07:41 UTC 2019


Hmm, I just starred at method 'source with it' in a SpurVMMaker image and
got
- 252 hits for 'self basicNew';
- 109 hits for 'super new'.

So it might depend on context... This would deserve more statistics (age of
method, initials, whether new is raising an Error or not, whether instance
side initialize does nothing or the wrong thing, etc...)

Le mer. 4 sept. 2019 à 22:38, tim Rowledge <tim at rowledge.org> a écrit :

>
>
> > On 2019-09-04, at 12:58 PM, Thiede, Christoph <
> Christoph.Thiede at student.hpi.uni-potsdam.de> wrote:
> >
> > Thank you :)
> >
> > A very minor question: Would you favor [self basicNew] over [super new]?
> It will work completely equivalently, but what is the better style?
>
> ^super new
>
> `self basicNew` will not always work equivalently. And I can almost
> guarantee it will always do the wrong thing just when you feel sure it is
> doing the right thing. And you will suffer Debugging Hell.
>
>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Why use one word when two polysyllabic agglomerates will do?
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190904/1b4dece0/attachment.html>


More information about the Squeak-dev mailing list