Comment #57 on issue 235 by mconstable: Support the Javascript E4X extension
http://code.google.com/p/v8/issues/detail?id=235

I suspect those who dislike the very idea of E4X have never used it. Server side example...

var header = "My Page",
    stuff = "I love e4x"

var body =
<body>
  <h1>{header}</h1>
  <p>{stuff)</p>
</body>;

print(<html>{body}</html>)

Note the multiline body var, there is no other way to have clean looking multiline "strings" in Javascript and that alone is worth E4X, add variable interpolation and it's simply a killer template engine... add serious XML workhorse features and anyone who thinks E4X is not useful or just a fad simply has no clue.


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to