Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How will xml modularisation in scala 2.11 play with xml literals?

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?

like image 342
Richard Close Avatar asked Mar 06 '14 11:03

Richard Close


1 Answers

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.

like image 99
som-snytt Avatar answered Oct 20 '22 18:10

som-snytt