How will xml modularisation in scala 2.11 play with xml literals?
Asked Answered
C

1

10

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?

Cooler answered 6/3, 2014 at 11:35 Comment(2)
+1 to this, I'm a huge fan of XML literals, incredibly useful for generating typesafe XHTML markup, for example. I think the issue is that anti-xml and other 3rd party libs have been more or less abandoned, and Scala's built-in XML support needs work, which, if you look at one of Adriaan Moors comments in Scala 2.11 branch, is not going to come from Typesafe (they're looking for someone to create a 3rd party XML lib rather than deal with legacy warts of existing Scala XML)Doug
The second question is a many-duplicated thing. #7569672Odontalgia
O
3

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.

Odontalgia answered 30/4, 2014 at 8:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.