W3C home > Mailing lists > Public > www-style@w3.org > April 2013

Re: [css-variables][naming] Renaming 'var'

From: Sylvain Galineau <galineau@adobe.com>
Date: Tue, 16 Apr 2013 10:18:02 -0700
To: Adam Prescott <adam@aprescott.com>
CC: Pete Boere <pete@the-echoplex.net>, "Jens O. Meiert" <jens@meiert.com>, fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <CD92D4A3.259B%galineau@adobe.com>

On 4/16/13 8:11 AM, "Adam Prescott" <adam@aprescott.com> wrote:

>On 16 April 2013 15:45, Sylvain Galineau <galineau@adobe.com> wrote:
>> This is not persuasive since 'red' is not the only option in this case
>> ('brand-color' seems more like what it is). No prefix naming convention
>> will prevent anyone from using poor variable names that will confuse
>> later.
>I think the issue is that it could (not sure by _who_) be misconstrued:
>    color: blue;
>    set-color: red;
>Both arguably "set", but they're different.

Again, sorry for being slow, but I do not see how this:


Šis obviously less confusing. The confusion in such cases is imo caused by
a rather poor choice of variable name and the co-location of two things
might be related and thus confused with each other, not the choice of
i.e. you can make this argument about any prefix we come up with.

There may be arguments set/get makes things more confusing in some cases
this can't be it.
Received on Tuesday, 16 April 2013 17:19:03 UTC

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