Question

Reading the release notes for Scala 2.11.0-RC1, I noticed that the splitting-off of scala xml to a separate jar is starting with the 2.11 series. Will this affect the use of xml literals, in 2.11 or down the line? Clearly, if you use xml literals you will also need the scala xml jar -- I'm wondering if there are plans to deprecate xml literals as well.

As an aside, I get the sense that Scala's support for XML is felt to be a mistake. As a language user, I've certainly been very happy with the support for literals and interpolation. I've found MetaData and UnprefixedAttribute to be somewhat awkward for manipulating attributes, but not terrible. What are the main issues with scala xml?

Was it helpful?

Solution

There was a thread in which Adriaan Moors replied to @virtualeyes that xml literal syntax

is, and has been for a while now, "effectively" deprecated.

There is a GSOC project to start a macrotized interpolator for XML as first step to spinning off and divesting XML support. The interpolator is expected to support pluggable libraries.

An XML interpolator was envisioned in the interpolation SIP, together with quasiquoting, so this has been in the works.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top