W3C home > Mailing lists > Public > www-style@w3.org > May 2012

Re: [css-variables] Using $foo as the syntax for variables

From: Joshua Cranmer <Pidgeot18@verizon.net>
Date: Fri, 25 May 2012 09:37:24 -0400
Message-id: <4FBF8B14.2010509@verizon.net>
To: www-style@w3.org
On 5/25/2012 4:58 AM, Fran├žois REMY wrote:
>> From: Tab Atkins Jr.
>> Okay, then we're debating personal taste.  Since I obliquely pointed
>> to this thread in Twitter, I've received nearly a dozen people saying
>> they're excited, and not a single negative voice (I'm sure they're out
>> there, but I haven't heard them yet).  I also know that others within
>> the WG are cool with this (some people mentioned this syntax when I
>> first presented the modern draft at TPAC), so it's not even a "WG
>> versus authors" divide.
> It's easier to get voices to acclaim a change than to keep things the 
> same. Personnaly, I dislike the proposal to use the dollar sign for 
> variables. This is a PHP-only convention, and one of the reason I 
> dislike coding in PHP. I know many people who dislike to use $ for 
> variables. Beside the fact some poeple don't like it, this doesn't 
> follow the established CSS conventions.

A more serious issue, IMHO, is that many templating systems use $foo for 
variable substitution. If anyone wants to use CSS variables with a 
templating system generating CSS files, this can cause issues.

Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
Received on Friday, 25 May 2012 13:40:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:16 UTC