Well, your 1st block of code is an actual C switch and the 2nd one is CSS, so it's unfair. But your CSS `switch` doesn't look like that at all. It be converted into that form, but IMO conceptually it's closer to `vector::at`. And while in C `switch` doesn't allow the conditions of your 2nd block, in JS you can. And the concept is basically the same. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5009#issuecomment-626066912 using your GitHub accountReceived on Friday, 8 May 2020 23:50:14 UTC
This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:06 UTC