<div dir="ltr">Is some sense, yes, but await isn't part of the "async def" structure. 
await is just an independent statement, related to async def, yes, but 
independent. My proposal links match with case/else statements as a 
single flow control structure, and it writes them as such, like 
if/for/while/try.<br><br>My proposal didn't *require* a suite to be 
multi-line, it just allowed it. I do see that it doesn't make sense for 
it to be multi-line, though. Perhaps multi-line can be a SyntaxError?<br><br>I
 too think, like you, that this doesn't feel 100% pythonic either, but I
 felt that it was... less unpythonic? that the proposals seen until now.<br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 12, 2018 at 3:03 PM,  <span dir="ltr"><<a href="mailto:steven@rigetti.com" target="_blank">steven@rigetti.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">In some sense async and await are like this group you describe, the keyword "await" doesn't have meaning outside a function annotated with "async".<br><br>The issue I'd have with your proposal is that it requires the "suite" to be an expression-based multi-line statement, ie. where the last statement becomes the value that is matched against. Similar to the original proposal that started this thread: these sorts of expression-based constructs don't feel that natural for Python.<span class=""><br><br>On Saturday, May 12, 2018 at 2:50:49 PM UTC, Andrés Delfino wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr"><div><div><div><div><div>I find it weird for case statements to be "inside" match statements. There's isn't a statement "group" that works this way right now, AFAIK.<br><br></div>This would also be weird:<br><br></div>match X:<br></div>case Y:<br>...<br><br></div>I thought a form based on try would make more coherent:<br><br>match:<br>    suite<br>case x:<br></div><div>    suite1<br></div><div>else:<br></div><div>    suite2<br></div><div><br></div><div>suite would be executed, and the last expression would be checked against each case. If no matching case is found, suite2 would be executed.<br><br></div><div>Does it make sense?<br></div></div></span><div><br><div class="gmail_quote"><span class="">On Sat, May 12, 2018 at 8:51 AM, Steven Heidel <span dir="ltr"><<a rel="nofollow">ste...@rigetti.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Great! Also emailed you with logistics.<br><br></span><div class="gmail_quote"><div><div><div dir="ltr">On Sat, May 12, 2018, 01:43 Jelle Zijlstra <<a rel="nofollow">jelle.z...@gmail.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div><div><div dir="ltr"><div class="gmail_quote"><div><div class="gmail_quote"><div><div>2018-05-11 22:01 GMT-04:00 Robert Roskam <span dir="ltr"><<a rel="nofollow">raider...@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hey Steven,<div><br></div><div>I'm also at PyCon. Shall we take this off list and attempt to meet up and discuss?<div><div><br></div></div></div></div></div></div></blockquote></div></div></div></div><div dir="ltr"><div class="gmail_quote"><div><div class="gmail_quote"><div><div dir="ltr" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">I'm also at PyCon and interested in meeting about this. I just wrote up a basic and incomplete implementation for pattern-matching yesterday between and after: talks: <a href="https://github.com/JelleZijlstra/cpython/blob/matchcase/Lib/test/test_matching.py" style="color:rgb(17,85,204)" rel="nofollow" target="_blank">https://github.com/Jell<wbr>eZijlstra/cpython/blob/matchca<wbr>se/Lib/test/test_matching.py</a>. It's nowhere near complete, but an implementation like this can help inform what the syntax should look like.</div></div></div></div></div></div>

<p></p></div></div>

-- <br>
<br>
--- <br>
You received this message because you are subscribed to a topic in the Google Groups "python-ideas" group.<br>
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/python-ideas/nqW2_-kKrNg/unsubscribe" rel="nofollow" target="_blank">https://groups.google.com/d/to<wbr>pic/python-ideas/nqW2_-kKrNg/<wbr>unsubscribe</a>.<br></span>
To unsubscribe from this group and all its topics, send an email to <a rel="nofollow">python-ideas...@googlegroups.<wbr>com</a>.<span class=""><br>
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank">https://groups.google.com/d/op<wbr>tout</a>.</span><span><br>
______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a rel="nofollow">Python...@python.org</a><span class=""><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="nofollow" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="nofollow" target="_blank">http://python.org/psf/codeofco<wbr>nduct/</a><br>
<br></span></span><span><font color="#888888"><span class="">
-- <br>
<br>
--- <br>
You received this message because you are subscribed to a topic in the Google Groups "python-ideas" group.<br>
To unsubscribe from this topic, visit <a href="https://groups.google.com/d/topic/python-ideas/nqW2_-kKrNg/unsubscribe" rel="nofollow" target="_blank">https://groups.google.com/d/to<wbr>pic/python-ideas/nqW2_-kKrNg/<wbr>unsubscribe</a>.<br></span>
To unsubscribe from this group and all its topics, send an email to <a rel="nofollow">python-ideas...@googlegroups.<wbr>com</a>.<span class=""><br>
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank">https://groups.google.com/d/op<wbr>tout</a>.<br>
</span></font></span></blockquote></div>
<br>______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a rel="nofollow">Python...@python.org</a><span class=""><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="nofollow" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="nofollow" target="_blank">http://python.org/psf/codeofco<wbr>nduct/</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br>______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/<wbr>codeofconduct/</a><br>
<br></blockquote></div><br></div></div>