Last time I introduced one of the new metaprogramming features in Scala 3, the inline keyword and how it affects source code. The example I used also contained a macro definition, using quoting and splicing. This post introduces those concepts.
After 8+ years of effort, Scala 3 was officially released this week. This blog post on the Scala language website provides some details, along with a cool visualization of the evolving git tree over that time.
Programming Scala, Third Edition is almost finished, too. We’re in the final production steps with a planned ebook release early in June. Print copies will be available a few weeks later.
Looking for the perfect wedding gift this Spring? You’re welcome! You can preorder on Amazon, Powells, and other vendors. The book page has more links.
I’ll return with more posts about Scala 3 features soon.
For a concise summary of most of the notable changes in Scala 3, see my new Scala 3 Highlights page.
Late in the Scala 3 development process, a new type scala.Matchable was introduced to fix a loophole in pattern matching. This post discusses that loophole, how Matchable fixes it, and implications of this change.
For an even more concise summary of most of the notable changes in Scala 3, see…
For a long time, Scala has supported a useful “trick” called infix operator notation. If a method takes a single argument, you can call it without the period after the instance and without parentheses around the argument. This post describes changes in Scala 3.