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

Re: [css-variables] Initial value of variables

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 31 May 2012 08:01:06 -0700
Message-ID: <CAAWBYDBYExrQFGrOa5=ExgwdTk7vrzE7gHb-9JO-62vi4CT3-A@mail.gmail.com>
To: Chris Eppstein <chris@eppsteins.net>
Cc: Fran├žois REMY <fremycompany_pub@yahoo.fr>, www-style list <www-style@w3.org>
On Thu, May 31, 2012 at 1:04 AM, Chris Eppstein <chris@eppsteins.net> wrote:
> Why not treat un-initialized variables as a null value? Empty string is just
> a poor-man's null that I think will come back to bite us. We've just added a
> null initial value for variables to Sass and it really cleaned up a lot of
> edge-case scenarios like the one mentioned here.

Not empty string, *empty*.  An empty string serializes as "\"\"" in JS.

Received on Thursday, 31 May 2012 15:01:57 UTC

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