[squeak-dev] Towards a more consistent and sensible implementation of #isAbstract

Chris Muller asqueaker at gmail.com
Sat Dec 9 23:01:14 UTC 2017

With objects you should delegate to the the receiver to decide what #=
means -- which in most cases will inherit that default implementation from
Object anyway.  Sending #== is generally bad form.

Converting uses of #= to #== for "performance" is a bad idea except in the
most inner, performance-critical code, and even then, it should be with a

On Thu, Dec 7, 2017 at 2:30 AM, Marcel Taeumel <marcel.taeumel at hpi.de>

> Hi, there.
> What are your thoughts on how to implement "MyClass class >> #isAbstract"?
> I think that one should always use #== and compare it to an actual class
> object like this:
> MyClass class >> #isAbstract
>    ^ self == MyClass
> At the time of writing, we have various attempts in your image. You can
> browse them easily:
> Best,
> Marcel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20171209/1aa59cb4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 43349 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20171209/1aa59cb4/attachment.png>

More information about the Squeak-dev mailing list