<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><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 12, 2018 at 8:51 AM, Steven Heidel <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">Great! Also emailed you with logistics.<br><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Sat, May 12, 2018, 01:43 Jelle Zijlstra <<a href="mailto:jelle.zijlstra@gmail.com" target="_blank">jelle.zijlstra@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"><div><div class="h5"><div dir="ltr"><div class="gmail_quote"><div class="gmail_extra"><div class="gmail_quote"><div><div class="m_7068463734780645435m_2181133336039696685h5">2018-05-11 22:01 GMT-04:00 Robert Roskam <span dir="ltr"><<a href="mailto:raiderrobert@gmail.com" target="_blank">raiderrobert@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 class="m_7068463734780645435m_2181133336039696685h5"><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 class="m_7068463734780645435m_2181133336039696685m_5534699457958320815h5"><br></div></div></div></div></div></div></blockquote></div></div></div></div><div dir="ltr"><div class="gmail_quote"><div class="gmail_extra"><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-variant-ligatures:normal;font-variant-caps: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);text-decoration-style:initial;text-decoration-color:initial">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)" target="_blank">https://github.com/<wbr>JelleZijlstra/cpython/blob/<wbr>matchcase/Lib/test/test_<wbr>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" target="_blank">https://groups.google.com/d/<wbr>topic/python-ideas/nqW2_-<wbr>kKrNg/unsubscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a href="mailto:python-ideas+unsubscribe@googlegroups.com" target="_blank">python-ideas+unsubscribe@<wbr>googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/<wbr>optout</a>.<span class=""><br>
______________________________<wbr>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">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></span><span class="HOEnZb"><font color="#888888">
-- <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="noreferrer" target="_blank">https://groups.google.com/d/<wbr>topic/python-ideas/nqW2_-<wbr>kKrNg/unsubscribe</a>.<br>
To unsubscribe from this group and all its topics, send an email to <a href="mailto:python-ideas%2Bunsubscribe@googlegroups.com" target="_blank">python-ideas+unsubscribe@<wbr>googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" rel="noreferrer" target="_blank">https://groups.google.com/d/<wbr>optout</a>.<br>
</font></span></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>