<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi Jaromir, hi all.<div><br></div><div>Hmmm.... I think the way context's are printed is fine. Their primary use is the debugger stack. Adding the prefix "context" would be too noisy:</div><div><br></div><div><img id="4bde419b-8510-4116-8398-4f157b4ac75b" src="cid:9659296d-9516-4358-81e6-e5353a158a93" width="328" height="227"></img><br></div><div><br></div><div>Yet, I suggest that we somehow improve the representation of BlockClosure in the Inspector and ObjectExplorer. Note that there is no need to change #printOn:. In a custom ClosureInspector, a custom "source code" field could be added, similar to CompiledCodeInspector. Maybe also list all the closured bindings, similar to ContextInspector. To improve Object Explorer, there could be a new entry to show the source code as well via <span style="font-size: 10pt">a custom #explorerContents</span><span style="font-size: 10pt">.</span></div><div><br></div><div>(Which reminds me that we should really improve the composability of inspectors, which is currently not possible due to the way how "self" is provided to inspector fields. I tried that once in MorphInspector to use DictionaryInspector for the custom properties in MorphExtension ... but failed to do so, looking at #streamPropertiesOn:)</div><div><br></div><div>I do tend to mix up Closure and Context from time to time, given that their printOn: is very similar. :-D Changing the printOn: from "[closure] in ..." to "closure [] in ..." wouldn't help me.</div><div><br></div><div>Best,</div><div>Marcel</div><div> </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;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 21.02.2021 14:20:22 schrieb Jaromir Matas <m@jaromir.net>:</p><div style="font-family:Arial,Helvetica,sans-serif">I suspect "[closure] in Class>>method" really means:<br><br>     closure: [] in Class>>method<br><br>while "[] in Class>>method" actually points to a context:<br><br>     context: [] in Class>>method<br><br>I understand a "closure" is, in fact, a block in a context. For a beginner<br>"[closure]" is really cryptic and confusing... <br><br>In addition, seeing "sender  =  <br>FullBlockClosure(BlockClosure)>>valueWithExit:" really twisted my brain :)<br>The sender is, indeed, a context.<br><br><br>May I suggest something more consistent to provide a clear clue e.g.:<br><br>sender... context [] in Class>>method<br><br>receiver... closure [] in Class>>method<br><br>analogous, though redundant:<br>outerContext... context [] in Class>>method<br>closureOrNil ... closure [] in Class>>method<br><br>Thanks a lot. Regards,<br><br><br><br>-----<br>^[^ Jaromir<br>--<br>Sent from: http://forum.world.st/Squeak-Dev-f45488.html<br><br></div></blockquote></div>