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

> I don't see any way they can both be called switch()
>[...]
> to a lesser extent because it's been circulating

Your gist was created 5 days before I posted my _switch_ (I was unaware of your other switch), and this is not a lot of time to circulate. I do not think that any of the two owns the "switch" word, and my opinion is that if any of the proposals is adopted by the CSSWG (and that remains to be seen), the name should be decided based on the convenience of CSS authors, and not "trademark wars".

That said, the proposal that has quite a few conditionals on it (and to me, looks like a multiple `if()`), is yours :slightly_smiling_face:.

IMHO we should focus on creating proposals that are useful to authors, and not on telling other people to change the names of their stuff.

> For me the idea in a switch statement is that you have some conditions defining different cases, and you choose the 1st case whose condition holds.

A switch with multiple conditions is not what people using C, Java, etc. are used to. Could you point to an example of a widely-used "switch" that has multiple conditionals?

-- 
GitHub Notification of comment by carlosame
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5009#issuecomment-626041839 using your GitHub account

Received on Friday, 8 May 2020 22:08:11 UTC