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 using your GitHub account

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