Skip to content

Comment on XHP: A New Way to Write PHP (from Facebook)

Comments

Scala does basically the same thing with XML:

http://www.scala-lang.org/node/131

...although I doubt it does escaping by default. Should be simple enough to add while you're converting the scala.xml.NodeSeq (iirc) to text.

For an API that required both XML and JSON output, Scala's built-in XML support had us wishing the JSON version of the API was as easy as the XML version.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.