Jan. 11, 2017
9:12 a.m.
at least we should rename it as âtreeMorphHeadâ⦠just âheadâ is too generic. Esteban
On 11 Jan 2017, at 10:03, Sven Van Caekenberghe <sven@stfx.eu> wrote:
On 11 Jan 2017, at 09:55, Torsten Bergmann <astares@gmx.de> wrote:
But why the hell would there be a Object>>#head ?!
IMHO such general selectors at this level should not be used unless there is a very good reason to do so.
Yes - some Morphic addition. Version says: BenjaminVanRyseghem in 2013 Only used in MorphTreeNodeMorph and to me this smells. We should nuke it.
Thx T.
Looking in a 6 image, there is also an even uglier implementation in
Association>>#head
^ (key isKindOf: Association) ifTrue: [ key head ] ifFalse: [ key ]
Duh.
And I can't seen any senders...