Removing D embedded in HTML feature

JMNorris nospam at nospam.com
Mon Mar 31 05:42:56 PDT 2008


Walter Bright <newshound1 at digitalmars.com> wrote in news:fsos4e$2j25$2
@digitalmars.com:

> Scott suggested this be removed for D 2.0. Is anyone at all using it, or 
> have plans to use it, or can make a good case for keeping it?
> 
> http://www.digitalmars.com/d/2.0/html.html

D and HTML have different and, as far as I can see, incompatible mechanisms  
for determining the source code character set.  AFAIK, BOM's are not a 
feature of HTML.  What happens when the BOM specifies one charset but a 
meta http-eqiv tag spcifies another?  Or when the meta http-eqiv tag 
specifies a charset that D does not support?

Jarret and perhaps Janice suggested that it could be a compiler feature 
without being part of the language spec.  I thought that's the current 
status since embedding in HTML is not mentioned in 
http://www.digitalmars.com/d/2.0/lex.html .

The prospect of trying to read

&nbsp;<span style="color:red">writefln</span>(<u>&quot;hello world&quot;
</u>);

is downright scary.  I say dump.

-- 
JMNorris



More information about the Digitalmars-d mailing list