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

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

From: Jens O. Meiert <jens@meiert.com>
Date: Tue, 28 Aug 2012 13:49:38 -0700
Message-ID: <CAJ0g8QRZx+BhKRn1mwhW8tF0Mh+LXG5nVWsKLvo376wh+pgtrA@mail.gmail.com>
To: www-style@w3.org
> 2. Defining Custom Properties: the ‘var-*’ family of properties
>
> 3. Using Variables - the ‘var()’ notation

What is the benefit in declaring and using variables—the same
variables—in such different ways? Are we not contracting a serious
“development usability” problem?

Why does the variable name need to be part of the declaration?

And what are, pardon me Tab, the other “‘variable-like’ things” we
would need the “$” syntax for if there is, so the community, such
immense immediate need for variables in CSS now, right at this moment?

I argue that the syntax should be as simple and consistent as
possible, probably well borrowing from another language, and that if
there is no immediate need for something else that is “variable-like,”
it shouldn’t influence the spec in such a dramatic fashion.

(While this probably sounds all more dramatic than I meant it to sound :)

-- 
Jens O. Meiert
http://meiert.com/en/
Received on Tuesday, 28 August 2012 20:50:29 GMT

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