<html><body><div>I already stated that I'm opposed to "cases" by themselves (too unreadably IMO because the keys and values are not sufficiently separated visually) so it should be no surprise that I'm similarly opposed to mixing "case" and "cases" (too confusing IMO). <br></div><div><br data-mce-bogus="1"></div><div>-Thorsten<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br>Am 04. Februar 2016 um 15:18 schrieb Craig Cruden via swift-evolution <swift-evolution@swift.org>:<br><br><div><blockquote type="cite"><div class="msg-quote"><div class="_stretch"><span class="body-text-content">I originally had them mutually exclusive but there was pushback and the fact that no harm would be done by mixing them - I did not see the reason why not to allow them.<br><br>You could have a couple cases each with several lines of code then a value, and then a few that are just key/value mappings…. <br><br><br><blockquote type="cite" class="quoted-plain-text">On 2016-02-04, at 21:14:58, Maximilian Hünenberger <m.huenenberger@me.com> wrote:</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">Should we allow mixing "case" and "cases"?</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">I don't think so since a "cases" between several "case"'s is not recognizable enough.</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">With the current grammar "cases" is also allowed after "case" labels:</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">Example (this is currently allowed):</blockquote><blockquote type="cite" class="quoted-plain-text"><br></blockquote><blockquote type="cite" class="quoted-plain-text">match(3) {</blockquote><blockquote type="cite" class="quoted-plain-text">case 1: "one"</blockquote><blockquote type="cite" class="quoted-plain-text">case 2: "two"</blockquote><blockquote type="cite" class="quoted-plain-text">cases 3: "three", 4: "four"</blockquote><blockquote type="cite" class="quoted-plain-text">default: "undefined"</blockquote><blockquote type="cite" class="quoted-plain-text">}</blockquote><br>_______________________________________________<br>swift-evolution mailing list<br><a href="mailto:swift-evolution@swift.org" data-mce-href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" data-mce-href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></span></div></div></blockquote></div></div></body></html>