You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _sips/minutes/2018-08-30-sip-minutes.md
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -160,26 +160,26 @@ In favor of the removal:
160
160
- scala-xml is very complicated, and has serious usability problems
161
161
162
162
- Adding the extra xml"""...""" shouldn’t be a bother
163
-
- For JSX-style support, maybe a jsx"" interpolator could have the same semantics as JSX, rather than that of scala-xml
163
+
- For JSX-style support, maybe a jsx"" interpolator could have the same semantics as JSX, rather than that of scala-xml
164
164
- Direct language support for XML only existed because string interpolators did not exist back then (supposedly). It seems to be an obviously better design to build on string interpolators.
165
165
- Removes XML as a special case. With interpolators, one can embed arbitrary languages within Scala.
166
-
- Similar argument: XML should have no higher place in the language than YAML, JSON, etc.
166
+
- Similar argument: XML should have no higher place in the language than YAML, JSON, etc.
167
167
- JSX-style use cases should use ScalaTags-style libraries anyway.
168
168
- XML being part of the language is the reason that XML libraries have stalled, and that JSON ones have flourished
169
-
- Counter-argument: lib stalling is due to the “symbol”-based translation. A name-based translation would not have this issue.
169
+
- Counter-argument: lib stalling is due to the “symbol”-based translation. A name-based translation would not have this issue.
170
170
171
171
Against the removal
172
172
173
173
- Difficulty of syntax highlighting
174
-
- Shouldn’t be a real issue as long as editors are on board
174
+
- Shouldn’t be a real issue as long as editors are on board
175
175
- The promised XML interpolator was never materialized
176
176
- JSX is now in widespread use in languages for front-end development. It is ironic that Scala would drop support for a similar feature now. It is even built in some languages, e.g., TypeScript.
177
-
- JSX is simpler than scala-xml, though: no namespace support, in particular.
177
+
- JSX is simpler than scala-xml, though: no namespace support, in particular.
178
178
- For front-end devs looking at Scala/Scala.js, string interpolators will look horrible compared to JSX, and it might be one of those “no-no” things that will push them away.
179
179
- Being able to just copy-paste examples from the Net is nice. (8 Likes on this one)
180
180
- No one uses XML anymore, right?
181
-
- Some answer that they do. Especially in non-greenfield projects.
182
-
- Kojo uses XML literals as building blocks for the Storytelling feature.
181
+
- Some answer that they do. Especially in non-greenfield projects.
182
+
- Kojo uses XML literals as building blocks for the Storytelling feature.
183
183
184
184
Counter-proposal
185
185
@@ -188,7 +188,7 @@ Named-based XML desugaring: https://contributors.scala-lang.org/t/pre-sip-name-b
188
188
- Less complexity in the language/compiler
189
189
- Open for library competition
190
190
- Compared to a string interpolator, flavors can be implemented using normal library code, without (whitebox) macros.
191
-
- Whiteboxness is necessary for xml”””<button …></button>””” to return a more precise type such as `xml.tags.Button` rather than `xml.Node`
191
+
- Whiteboxness is necessary for xml”””<button …></button>””” to return a more precise type such as `xml.tags.Button` rather than `xml.Node`
192
192
193
193
Other ideas
194
194
- Can it be a compiler plugin or a macro?
@@ -197,11 +197,11 @@ Other ideas
197
197
Related links
198
198
199
199
- Other XML libraries:
200
-
-https://note.github.io/xml-lens/
201
-
- One in scalaz-deriving: https://gitlab.com/fommil/scalaz-deriving/tree/master/examples/xmlformat/src/main/scala/xmlformat (link behind a login wall, it seems)
200
+
-https://note.github.io/xml-lens/
201
+
- One in scalaz-deriving: https://gitlab.com/fommil/scalaz-deriving/tree/master/examples/xmlformat/src/main/scala/xmlformat (link behind a login wall, it seems)
0 commit comments