Re: [csswg-drafts] [css-conditional-4] Rename @when to @if (#6684)

No strong opinion, but at the very lest this is wrong:

> In natural language, "when" is used for something that hasn't happened yet, whereas if is more synchronous.

For instance, as in `When she arrived, everyone greeted her`. 
The word "when" does not imply timing per se, the sentence (+tense) does.

> It goes against conditional naming in almost every structured language.

I think this is a stronger point.

------

As a rule of thumb though, I don't like `@if` for media queries because these things are transient and can turn on or off at any point, so `@when` is more indicative of that transient nature. That said, there are other things which are not transient in nature like `supports()` so in in the end I don't feel that strongly.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 12 October 2021 21:47:19 UTC