4 ms·
Elegance here means having much meaning a small space. Variable replacement is hardly programmable. More of a macro expansion. To my eyes, this has lots of mea
by bprater 18y ago
Elegance here means having much meaning a small space. Variable replacement is hardly programmable. More of a macro expansion.
To my eyes, this has lots of meaning:
div { color: var(CorporateLogoBGColor) }
To my eyes, this has very little meaning and forces me to consult a reference doc every time I look at it:
div { color: #e852aa }
I think the var() syntax is non-elegant, it's a bit fugly. I think Perl's $ might visually look more elegant.
Advantages: DRY works. Designers can make sweeping changes to a page with a small change.
I don't think designers are going anything but more flexibility in having this available.