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

Re: [css-variables] Different syntax for variable definition and use

From: Jens O. Meiert <jens@meiert.com>
Date: Wed, 29 Aug 2012 10:31:51 -0700
Message-ID: <CAJ0g8QR+iS3_37+DRWs5d_SV8FbypFp1dzaCRyPk5FUuqWTSAg@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style@w3.org
> > “var-foo” appears to mean the variable is called “var-foo”; but with
> > “var(foo)”, the variable seems to be called “foo".
>
> I think it's pretty clear: "var-foo" means you're declaring a property
> for a var named foo.  Change the - to a space, the : to an =, and
> you're practically writing JS! ^_^

Since nobody here is a linguist:

“The hyphen (‐) is a punctuation mark used to join words and to
separate syllables of a single word.” [1]

Wikipedia does not say anything like this about parentheses.

The suggested syntax is confusing.


[1] http://en.wikipedia.org/wiki/Hyphen

-- 
Jens O. Meiert
http://meiert.com/en/
Received on Wednesday, 29 August 2012 17:32:40 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:59 GMT