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

Re: [css-variables] Initial value of variables

From: Brian Kardell <bkardell@gmail.com>
Date: Thu, 31 May 2012 11:08:51 -0400
Message-ID: <CADC=+jdEvmsuw8jo29jEF8yHzmy4+MRndn6Er6FpAiOB9VxbbQ@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style list <www-style@w3.org>, François REMY <fremycompany_pub@yahoo.fr>, Chris Eppstein <chris@eppsteins.net>
Yes, I think that makes sense.
On May 31, 2012 11:03 AM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:

> 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.
>
> ~TJ
>
>
Received on Thursday, 31 May 2012 15:09:24 GMT

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