Polymorphic results would be good

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Polymorphic results would be good

stepharo
Hi

I'm cleaning Smalltalk ui icons usage again and more :)

I just want to share with you. I see code like that

KomitDirectoryRemote>>icon
     ^ 'DIR'

KomitGemstoneRemote>> icon
     ^ Smalltalk ui icons iconNamed: #komitterGemstoneRemote

It would be nice if we could be cleaner and makes sure that we do not
return totally different objects.

Stef

PS: Some of you can understand why I was not found of Komitter and
suggested to remove it.

So let us improve it.