<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi all --<div><br></div><div>If you don't like to use #in:, this is probably not for you.</div><div><br></div><div>However, if you occasionally use #in: to tweak longer cascades or to avoid a method-local temps in favor of block-scopes, #allIn: expands #in: to multiple variables.</div><div><br></div><div>#in: and #allIn: would allow you to work with an extra scope (and names) to clarify your code as needed. <span style="font-size: 10pt">It's not without alternatives. Regular temps can do everything that #in: can do.</span></div><div><br></div><div>| instance |</div><div>instance := Morph new.</div><div>self addMorph: instance.</div><div>^ instance</div><div><br></div><div>vs.</div><div><br></div><div>^ Morph new</div><div>   in: [:instance | self addMorph: instance];</div><div>   yourself</div><div><br></div><div>It's not that important. :-) The second style makes it easier to be commented-out in its entirety, for example.</div><div><br></div><div>Here is another example for using fresh bindings:</div><div><br></div><div>{ SomePreferenceObject . PreferenceObject new } allIn: [:old :new |</div><div>   ...</div><div>   SomePreferenceObject := new].</div><div><br></div><div>#allIn: seems not too important since it can easily be simulated with #in:. Not sure. Probably needs more use cases. During the past years, I only found very few situations where I would prefer #in: over extra temps. I one case, my goal was a one-liner to make the text-diff look more compact. =)</div><div><br></div><div>Best,</div><div>Marcel</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 27.10.2021 14:51:42 schrieb Thiede, Christoph <christoph.thiede@student.hpi.uni-potsdam.de>:</p><div style="font-family:Arial,Helvetica,sans-serif">


<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size: 12pt;color: #000000;font-family: Calibri,Helvetica,sans-serif">
<p>Hi Marcel, could you maybe share some practical examples for #allIn:? I know that many people dislike #in:, too, as it can be used as just another dubious dispatch ...</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif;color: #000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von commits@source.squeak.org <commits@source.squeak.org><br>
<b>Gesendet:</b> Mittwoch, 27. Oktober 2021 13:27:06<br>
<b>An:</b> squeak-dev@lists.squeakfoundation.org<br>
<b>Betreff:</b> [squeak-dev] The Inbox: Collections-mt.961.mcz</span>
<div> </div>
</div>
</div>
<span style="font-size: 10pt"><span style="font-size: 10pt">
<div class="PlainText">A new version of Collections was added to project The Inbox:<br>
<a href="http://source.squeak.org/inbox/Collections-mt.961.mcz">http://source.squeak.org/inbox/Collections-mt.961.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Collections-mt.961<br>
Author: mt<br>
Time: 27 October 2021, 1:27:04.102238 pm<br>
UUID: ff529f7f-b6c8-da48-91cf-201db580c537<br>
Ancestors: Collections-eem.960<br>
<br>
Propose addition of #allIn:. See comment. Please review and discuss.<br>
<br>
=============== Diff against Collections-eem.960 ===============<br>
<br>
Item was added:<br>
+ ----- Method: Array>>allIn: (in category 'accessing') -----<br>
+ allIn: aBlock<br>
+        "Use the receivers contents as arguments for aBlock. Truncate not needed arguments, fill in missing ones with nil. Similar to #groupsDo: for single block invocation. Use it to avoid nested calls of #in:.<br>
+        <br>
+        Note that this is implemented here in Array to allow its use only in literal arrays."<br>
+        <br>
+        ^ aBlock valueWithEnoughArguments: self!<br>
<br>
<br>
</div>
</span></span>
</div></blockquote></div>