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
Received on Sunday, 4 April 2010 20:33:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:44 UTC