- From: Mark Brown <mark@mercurylang.org>
- Date: Mon, 13 Jun 2016 10:50:34 +1000
- To: W3C www-style mailing list <www-style@w3.org>
On Sat, Jun 11, 2016 at 7:24 PM, Daniel Glazman <daniel.glazman@disruptive-innovations.com> wrote: > On 11/06/2016 09:54, Mark Brown wrote: > >> Has anyone considered something like >> >> @switch { >> @case C1 { ... } >> @case C2 { ... } >> @default { ... } /* optional */ >> } > > /me faints. I'm not in a position to judge whether the problem with chained rules that you have raised is serious enough to preclude their use. The example just illustrates that that wouldn't prevent some other form of multi-way branch being added. Hopefully your objection isn't just to the choice of names. It could just as easily be: @first-of { /* use the first non-discarded rule */ @when C1 { ... } @when C2 { ... } ... @otherwise { ... } /* optional */ } Mark
Received on Monday, 13 June 2016 00:51:02 UTC