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

Re: [css3-syntax] Parts of the state machines that are never reached

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Sat, 05 Jan 2013 09:42:45 +0100
Message-ID: <50E7E785.8050909@kozea.fr>
To: www-style@w3.org
Le 05/01/2013 05:46, Tab Atkins Jr. a écrit :
> Yeah, I've probably got a few areas where I'm being over-careful
> accidentally.  I've killed this one.  If you spot any more, let me
> know.

I’d still add a note at the end of ident-state like "The next input 
character can never be anything else." or "This state is never switched 
to with another next input character."

In an implementation this is where I’d add an "assert" statement, to 
catch coding mistakes.

-- 
Simon Sapin
Received on Saturday, 5 January 2013 08:43:08 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:04 GMT