W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2020

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

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Fri, 08 May 2020 23:50:13 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-626066912-1588981812-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:06 UTC