Re: [csswg-drafts] [css-values]: Express conditional values in a more terse way (#5009)

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 account

Received on Friday, 8 May 2020 23:50:14 UTC