W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: Single-line comments

From: Lars Gunther <gunther@keryx.se>
Date: Sun, 04 Apr 2010 22:32:59 +0200
Message-ID: <4BB8F77B.6080004@keryx.se>
To: www-style@w3.org
2010-04-03 22:08, Glen skrev:
> I see.
>
> Well, I don't think it's a huge optimization that should prevent
> single-line comments from being implemented. UAs can simply be changed
> to collapse spaces/tabs only, right?

I have no opinion on single line comments. (Except that I occassionally 
use the by force of habit from PHP/JS/C/Java, etc.)

I do however suppose that the first thing an optimizer would do is to 
strip out all comments, before it starts to remove all whitespace, just 
like it works in JavaScript minification.

This means that current optimizer would need to be rewritten, but that 
is trivial. There might be other valid concerns, but optimization is not 
an usable argument here.


-- 
Lars Gunther
http://keryx.se/
http://twitter.com/itpastorn/
http://itpastorn.blogspot.com/
Received on Sunday, 4 April 2010 20:33:28 GMT

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