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

>Beacuse if I'm styling a web page with coca-cola branding I'll want to
>use a variable named 'red' to store the exact >brand color. Since 'red'
>is also color keyword, 'set-red' to me implies you might be messing with
>the keyword value >itself.
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 them
later.


>'var-' is less generic than 'set-', so the intention is clearer.

var- and var() are completely generic hence the suggestion to have set-
and get- to convey which does what.

Received on Tuesday, 16 April 2013 14:47:51 UTC