<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 17, 2015 at 5:39 AM, Frank Shearar <span dir="ltr"><<a href="mailto:frank.shearar@gmail.com" target="_blank">frank.shearar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 16 January 2015 at 21:44, <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>> wrote:<br>
> Chris Muller uploaded a new version of System to project The Trunk:<br>
> <a href="http://source.squeak.org/trunk/System-cmm.694.mcz" target="_blank">http://source.squeak.org/trunk/System-cmm.694.mcz</a><br>
><br>
> ==================== Summary ====================<br>
><br>
> Name: System-cmm.694<br>
> Author: cmm<br>
> Time: 16 January 2015, 3:44:19.079 pm<br>
> UUID: e79a2347-2f40-4fec-8f00-f67ecad68491<br>
> Ancestors: System-dtl.693<br>
><br>
> - #flush stdout and stderr after writing error information to them.<br>
> - After that, if the exception is resumable (i.e. a Warning), resume it. Except if its a MessageNotUnderstood -- that is not an error you want to resume in a headless environment.<br>
<br>
</span>Why? It's probably a rare use case for a #run: script to catch MNUs to<br>
do something fancy, I guess? Maybe it's because #run: is usually<br>
(always?) the top level of the program?<br></blockquote><div><br></div><div>Exactly. #run: is for initiating long-running batch processes, typically in headless mode.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Catching only MNUs seems very specific. Maybe there could be a #run:<br>
version that says "and here's a function you can use to control which<br>
exceptions are OK to resume, and which not"?<br></blockquote><div><br></div><div>It could, but the goal is for #run: to make it easy to run batch operations and do-the-right-thing while demanding the bare minimum of configuration from the user.</div><div><br></div><div>I smell the same thing you do. I really don't like the smell of MessageNotUnderstood check, but let me explain my rationale in response to Eliots note and we can go from there.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
frank<br>
<br>
</font></span></blockquote></div><br></div></div>