in Scala 2, they don't chain 😇, even if we try to give the compiler an assist
can we make them chain in Dotty? 😈
let's try it!
first let's set up sbt:
% cat project/plugins.sbt
in Scala 2, they don't chain 😇, even if we try to give the compiler an assist
can we make them chain in Dotty? 😈
let's try it!
first let's set up sbt:
% cat project/plugins.sbt
public <T> boolean exists(scala.collection.Iterable<T>, scala.Function1<T, java.lang.Object>); | |
Code: | |
0: new #19 // class scala/util/boundary$Label | |
3: dup | |
4: invokespecial #44 // Method scala/util/boundary$Label."<init>":()V | |
7: astore_3 | |
8: aload_1 | |
9: aload_0 | |
10: aload_2 | |
11: aload_3 |
Want to process XML that's too large to fit in memory?
The Scala standard library used to offer scala.xml.pull
for this. It became part of the scala-xml library when scala-xml became separate. But then scala.xml.pull
got deprecated (in scala.xml 1.1.1) and finally removed entirely (in scala-xml 2.0.0-M1). The recommended replacement is javax.xml.stream.events
.
I had some old code that used scala.xml.pull
to digest my iTunes Music Library.xml
and print various statistics. Recently I converted it to Scala 3, so I decided to get off the deprecated API at the same time.
So, here is the before-and-after. Perhaps this will help other users of scala.xml.pull
who want to convert.
The draft that was here has been published at: https://github.com/scala/scala/releases/tag/v2.13.3
If you notice anything in the notes that could be improved, you can still comment on this gist and I'll see it and respond.
YouTube link: https://www.youtube.com/watch?v=VhfuuWm3SHE
Scala Days NYC happened and two of us were there. And the Scala Center launched, with Heather as its Executive Director.
Your hosts this episode: Josh Suereth, Dick Wall,
The main purpose of this release is to fix the following regressions in 2.12.9:
Scala 2.12.9 generates shallower ASTs in pattern translation, to reduce stack size requirements (-Xss
) during compilation.
Scala.js users must update to 0.6.28+ or 1.0.0-M8+ for compatibility with Scala 2.12.9. (#7375)
these notes have moved to https://github.com/scala/scala/releases/tag/v2.13.0-RC2