- From: Rasmus Schultz via GitHub <sysbot+gh@w3.org>
- Date: Mon, 24 Feb 2025 15:50:14 +0000
- To: public-css-archive@w3.org
@edbaafi for simple conditionals, maybe `when` could work? seems to fit naturally in this context - "when this condition is true, use this value, otherwise use that value." for pattern matching, which I think is what you're highlighting as "something better" here, `select` would clearly be problematic, both in an HTML and CSS context - words like `match`, `switch` or `case` might work for that. but I don't think pattern matching can or should take the place of simple conditionals - they're for a different use case. (you probably don't want your code littered with "pattern matching" expressions with just a single condition and a default.) (it would be great to have both, but I suspect pattern matching is even more difficult to fit into existing syntax...) -- GitHub Notification of comment by mindplay-dk Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10064#issuecomment-2678885146 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 24 February 2025 15:50:14 UTC