<div dir="ltr">Hi Claude, that's nice. Whenever I faced this issue I always turned to the boolean flag variable. But this is strictly better. I expect to use it from now on. Thanks!<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 8, 2018 at 10:13 AM, Claude Pache <span dir="ltr"><<a href="mailto:claude.pache@gmail.com" target="_blank">claude.pache@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What about the following pattern (labelled block + break)?<br>
<br>
```js<br>
processSuggestions: {<br>
<span class="">    let suggestions;<br>
    try {<br>
      suggestions = await fetchSuggestions();<br>
    } catch (e) {<br>
      alert('Failed to load suggestions');<br>
</span>      break processSuggestions;<br>
    }<br>
    showSuggestions(suggestions);<br>
}<br>
```<br>
<span class="HOEnZb"><font color="#888888"><br>
—Claude<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
es-discuss mailing list<br>
<a href="mailto:es-discuss@mozilla.org">es-discuss@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/es-discuss" rel="noreferrer" target="_blank">https://mail.mozilla.org/<wbr>listinfo/es-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>  Cheers,<br>  --MarkM</div></div></div>
</div>