Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>VonC's answer is hard to improve on, so I won't even try to. I'll cover some other stuff not mentioned by him.</p> <p>First, some deprecated stuff will go. If you have deprecation warnings in your code, it's likely it won't compile anymore.</p> <p>Next, Scala's library is being expanded. Mostly, common little patterns such as catching exceptions into <code>Either</code> or <code>Option</code>, or converting an AnyRef into an Option with <code>null</code> mapped into <code>None</code>. These things can mostly pass unnoticed, but I'm getting tired of posting something on the blog and later having someone tell me it's already on Scala 2.8. Well, actually, I'm not getting <em>tired</em> of it, but, rather, and happily, used to it. And I'm not talking here about the Collections, which <em>are</em> getting a major revision.</p> <p>Now, it <em>would</em> be nice if people posted actual examples of such library improvements as answers. I'd happily upvote all such answers.</p> <p>REPL is not getting just command-completion. It's getting a lot of stuff, including the ability to examine the AST for an object, or the ability to insert break points into code that fall into REPL.</p> <p>Also, Scala's compiler is being modified to be able to provide fast partial compilation to IDEs, which means we can expect them to become much more "knowledgable" about Scala -- by querying the Scala compiler itself about the code.</p> <p>One big change is likely to pass unnoticed by many, though it will decrease problems for library writers and users alike. Right now, if you write the following:</p> <pre><code>package com.mystuff.java.wrappers import java.net._ </code></pre> <p>You are importing not Java's <code>net</code> library, but <code>com.mystuff.java</code>'s <code>net</code> library, as <code>com</code>, <code>com.mystuff</code>, <code>com.mystuff.java</code> and <code>com.mystuff.java.wrappers</code> all got within scope, and <code>java</code> can be found inside <code>com.mystuff</code>. With Scala 2.8, only <code>wrappers</code> gets scoped. Since, sometimes, you want some of the rest to be in Scope, an alternative <code>package</code> syntax is now allowed:</p> <pre><code>package com.mystuff.factories package ligthbulbs </code></pre> <p>which is equivalent to:</p> <pre><code>package com.mystuff.factories { package lightbulbs { ... } } </code></pre> <p>And happens to get both <code>factories</code> and <code>lightbulbs</code> into scope.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload