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

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

From: Michael Mifsud via GitHub <sysbot+gh@w3.org>
Date: Thu, 26 May 2016 14:03:59 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-221879890-1464271438-sysbot+gh@w3.org>
>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

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