Re: [csswg-drafts] [mediaqueries][css-conditional] else

>Sass can probably make @+something be converted to @something

I agree that some sort of escape hatch could be useful. I'd argue the 
number of keystrokes is a non-issue, the issue is the cognitive 
overhead. An escape hatch like this is nice because it's the same for 
all directives so it becomes just part of the language.

It's interesting to note Sass has previously relied on an escape hatch
 that CSS has provided with the `-` prefix. We were able to take 
advantage of this even recently with the extra `-` in the prefix for 
custom properties.

Funnily enough the technology aspect of this issue go away with 
`@-if`.

>while @when [..] the mental burden from unfamiliarity.

Given that CSS devs have never hard an `if` construct I'd argue that 
unfamiliarity is moot point, and any one who is familiar `if` 
constructs would easily grasp an alternative syntax. 

Plus they get the added bonus but `@when` would be Googleable.



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

Received on Thursday, 26 May 2016 14:04:04 UTC