<div dir="auto">Hi Christoph,<div dir="auto">I would be reluctant to add it to Object, because it's super hard to remove from Object afterward...</div><div dir="auto">IMO whatever condition used in place of Block should quake like a block. So we should add cull: to those evaluable classes... Every other object should not care.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 9 déc. 2019 à 18:51, Thiede, Christoph <<a href="mailto:Christoph.Thiede@student.hpi.uni-potsdam.de">Christoph.Thiede@student.hpi.uni-potsdam.de</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_792609671851754622divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Hi all!</p>
<p><br>
</p>
<p>Just another, possibly crazy idea: What about implementing #cull:, #cull:cull: etc. on Object?</p>
<p><br>
</p>
<p><b>Object >> #cull: firstArg</b></p>
<p><b>    ^ self value</b></p>
<p><br>
</p>
<p>This could improve the polymorphy between "evaluables" such as blocks or MessageSends and other objects. Example:</p>
<p><br>
</p>
<p><span>[2 / 0] on: ZeroDivide do: Float infinity</span><br>
</p>
<p><span><br>
</span></p>
<p><span>Some current implementations that call both #isBlock and #cull: also reveal that there might be a small break in the interface. From #haltIf:</span></p>
<p><span><img size="7123" id="m_792609671851754622img852922" style="max-width:99.9%" src="cid:95ff5c48-deea-4916-916d-937c0382e78b"><br>
</span></p>
<p><span><br>
</span></p>
<p><span>Just wanted to share that thought :) In general, do you think blurring the differences between block and object in that way might be a good idea or rather a bad one? At least we already have implemented #value on Object.</span></p>
<p><span><br>
</span></p>
<p><span>Disclaimer: I know that in many cases, you should prefer a block for performance reasons/compiler optimization, but there is still a gap between the interfaces ...</span></p>
<p><span><br>
</span></p>
<p><span>Best,</span></p>
<p><span>Christoph</span></p>
<div id="m_792609671851754622Signature">
<div id="m_792609671851754622divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="divtagdefaultwrapper">
<div>
<div id="m_792609671851754622Item.MessagePartBody">
<div id="m_792609671851754622Item.MessageUniqueBody" style="font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont">
<div dir="ltr">
<div id="m_792609671851754622divtagdefaultwrapper"><font face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">
<div id="m_792609671851754622Signature">
<div style="margin:0px"><font style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont"></font></div>
</div>
</font></div>
</div>
</div>
</div>
</div>
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
</div>

<br>
</blockquote></div>