<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">-0.5 against keeping "cases".</div><div class="">I see it as a replacement for dictionary literal "pattern matching":</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(209, 47, 27);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">[</span><span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">1</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> : </span>"one"<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">, </span><span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">2</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> : </span>"two"<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">, </span><span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">3</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> : </span>"three"<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">][</span><span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">1</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">] ?? </span>"undefined"</div></div><div class=""><br class=""></div><div class="">vs</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(49, 89, 93);" class="">match<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span><span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">1</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">) {</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">&nbsp; &nbsp;&nbsp;<span style="color: rgb(187, 44, 162);" class="">cases&nbsp;</span><span style="color: rgb(39, 42, 216);" class="">1</span>&nbsp;:&nbsp;<span style="color: rgb(209, 47, 27);" class="">"one"</span>,&nbsp;<span style="color: rgb(39, 42, 216);" class="">2</span>&nbsp;:&nbsp;<span style="color: rgb(209, 47, 27);" class="">"two"</span>,&nbsp;<span style="color: rgb(39, 42, 216);" class="">3</span>&nbsp;:&nbsp;<span style="color: rgb(209, 47, 27);" class="">"three"</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="color: rgb(209, 47, 27);" class="">&nbsp; &nbsp;&nbsp;</span><span style="color: rgb(187, 44, 162);" class="">default</span>:<span style="color: rgb(187, 44, 162);" class="">&nbsp;</span><span style="color: rgb(209, 47, 27);" class="">"undefined"</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">}</div></div><div class=""><br class=""></div><div class="">"cases" adds exhaustiveness and is relatively concise.</div><div class=""><br class=""></div><div class="">Even though it would be nice to have but I don’t think that I would use it frequently.</div><div class="">In addition, to be more consistent with "case", "cases" would introduce pattern matching which doesn’t seem right with this concise syntax.</div><br class=""><blockquote type="cite" class="">Can we have a vote on removing / keeping the cases clause. &nbsp;I personally would not typically use it, but there was a split on whether to keep it or delete it so I just kept it in the original until — as I expected — it would be dropped during review (assuming it has a chance of passing).<div class=""><br class=""></div><div class="">I though, do not find cases to be particularly hard to read if you have 10 key/value pairs over two lines…. and no mixture….. readability is of the sample in the document is concise in that example and quite readable for me (but I would probably still not use it).</div></blockquote></body></html>