<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"><br></div><div dir="ltr"><br><blockquote type="cite">On Nov 24, 2022, at 11:15 AM, Taeumel, Marcel <Marcel.Taeumel@hpi.de> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">


Hehe. Of course you do. 😉 I just wanted to highlight the fact that nil is no domain object. Exceptional usage should be done by intention. In general, ifNil checks interfere with readability of domain logic. Still, I see no harm in such ifNil checks. Who would
 agree on a domain-specific symbol for start anyway 😅</div></blockquote><div><br></div><br><div dir="ltr">😅 <3</div><br><blockquote type="cite"><div dir="ltr"><hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> on behalf of Eliot Miranda <eliot.miranda@gmail.com><br>
<b>Sent:</b> Thursday, November 24, 2022 7:53:35 PM<br>
<b>To:</b> The general-purpose Squeak developers list <squeak-dev@lists.squeakfoundation.org><br>
<b>Subject:</b> Re: [squeak-dev] The Trunk: Compiler-eem.480.mcz</font>
<div> </div>
</div>
<div dir="auto">Hi Marcel,
<div dir="ltr"><br>
<blockquote type="cite">On Nov 24, 2022, at 1:03 AM, Marcel Taeumel <marcel.taeumel@hpi.de> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div id="x___MailbirdStyleContent" dir="ltr" style="font-size:10pt; font-family:Arial; color:#000000; text-align:left">
+1 Even for a loop-based algorithm, clarity would improve if the initial case would be flagged with a symbol, not nil:
<div><br>
</div>
<div>x := #start.</div>
<div>[ ... ] whileTrue: [</div>
<div>   x = #start ifTrue: [x := ... ].</div>
<div>   ...</div>
<div>].</div>
</div>
</div>
</blockquote>
<div><br>
</div>
Please don’t take this personally; I find the above pretentious in the extreme, and, given how much thought Smalltalk-80’s designers gave to initializing with nil (again it’s in the blue book), displaying and/or celebrating ignorance.  So -1,000.
<div><br>
<blockquote type="cite">
<div dir="ltr">
<div id="x___MailbirdStyleContent" dir="ltr" style="font-size:10pt; font-family:Arial; color:#000000; text-align:left">
<div><br>
</div>
<div>Best,</div>
<div>Marcel</div>
<div class="x_mb_sig"></div>
<blockquote class="x_history_container" type="cite" style="border-left-style:solid; border-width:1px; margin-top:20px; margin-left:0px; padding-left:10px">
<p style="color:#AAAAAA; margin-top:10px">Am 23.11.2022 21:23:27 schrieb Tobias Pape <das.linux@gmx.de>:</p>
<div style="font-family:Arial,Helvetica,sans-serif">Yet, nil is only seldom a good domain object.<br>
-t<br>
<br>
> On 23. Nov 2022, at 19:34, tim Rowledge wrote:<br>
> <br>
> I won't quote it all again but what Eliot wrote is important. There are good solid reasons why Smalltalk has a rigorously defined UndefinedObject. We demand rigorously defined areas of doubt and uncertainty!<br>
> <br>
> tim<br>
</div>
</blockquote>
</div>
<span></span></div></blockquote></div></div></div></blockquote></body></html>