<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
                                        > <span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">I still feel like using #ifNil:, #ifNotNil: in a cascade is not right.</span><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Me too. It's hard to read.</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Best,</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Marcel</span></div><div class="mb_sig"></div><blockquote class="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 25.02.2020 11:36:00 schrieb Levente Uzonyi <leves@caesar.elte.hu>:</p><div style="font-family:Arial,Helvetica,sans-serif">Hi Christoph,<br><br>I still feel like using #ifNil:, #ifNotNil: in a cascade is not right.<br>In this case, having  #yourself inside the #ifNotNil: block looks more <br>natural to me:<br><br>      ^(self browseVersionsOf: aCompiledMethod) ifNotNil: [:browser |<br>               browser<br>                       selectMethod: aCompiledMethod;<br>                        yourself ]<br><br><br>Levente<br><br>On Mon, 24 Feb 2020, commits@source.squeak.org wrote:<br><br>> Christoph Thiede uploaded a new version of Tools to project The Inbox:<br>> http://source.squeak.org/inbox/Tools-ct.945.mcz<br>><br>> ==================== Summary ====================<br>><br>> Name: Tools-ct.945<br>> Author: ct<br>> Time: 24 February 2020, 1:56:51.392323 pm<br>> UUID: cc577466-ca48-484b-9454-11ae7ffde0b2<br>> Ancestors: Tools-mt.940<br>><br>> Fixes a bug/unnecessary limitation in VersionsBrowser class >> #browseMethod: that raised an error when browsing a method that had been removed from the system.<br>><br>> You can also reproduce it via: thisContext method browse "on a fresh image".<br>><br>> This commit replaces Tools-ct.944, which has been refactored again to reuse the return carat according to Kent Beck ("Format conditionals so their value is used where it clearly expresses the intent of the method"). Thanks to Chris for the reminder!<br>><br>> =============== Diff against Tools-mt.940 ===============<br>><br>> Item was changed:<br>>  ----- Method: VersionsBrowser class>>browseMethod: (in category 'instance creation') -----<br>>  browseMethod: aCompiledMethod<br>> <br>> +        ^ (self browseVersionsOf: aCompiledMethod)<br>> +              ifNotNil: [:browser |<br>> +                   browser selectMethod: aCompiledMethod];<br>> -         ^ (self browseVersionsForClass: aCompiledMethod methodClass selector: aCompiledMethod selector)<br>> -                 selectMethod: aCompiledMethod;<br>>            yourself!<br>><br>> Item was added:<br>> + ----- Method: VersionsBrowser class>>browseVersionsOf: (in category 'instance creation') -----<br>> + browseVersionsOf: aCompiledMethod<br>> + <br>> +   | methodClass methodSelector |<br>> +  methodClass := aCompiledMethod methodClass.<br>> +     methodSelector := aCompiledMethod selector.<br>> +     ^ self<br>> +          browseVersionsOf: aCompiledMethod<br>> +               class: methodClass<br>> +              meta: methodClass isMeta<br>> +                category: (methodClass organization categoryOfElement: methodSelector)<br>> +          selector: methodSelector!<br><br></div></blockquote>
                                        </div></body>