You cannot post messages because only members can post, and you are not currently a member.
Description:
Discussions about the core internal design and implementation of the Scala system. This list is mainly used by Scala developers, but it is open to the general public. Please only post new threads if you commit to the Scala code base, and you need to discuss the internals of the Scala system.
|
|
|
For comprehension returning unexpected type with unused assignation
|
| |
All:
With 2.10.1:
scala> for ((k, v) <- Map("a" -> "b")) yield v -> k
res0: scala.collection.immutable.Map [String,String] = Map(b -> a)
scala> for ((k, v) <- Map("a" -> "b"); a = k.length) yield v -> k
res1: scala.collection.immutable.Map [String,String] = Map(b -> a)
But:
scala> for ((k, v) <- Map("a" -> "b"); a = k.length; b = v.length) yield v -> k... more »
|
|
-Xexperimental exhaustive check for virtpatmat
|
| |
"Is the -Xexperimental exhaustive check for virtpatmat known to be
experimentally non-deterministic?"
"I dunno, let me google. Yes, here it is."
[link]
"OK, that was easy. That google is pretty nifty. I found this because I
added stderr output to partest logs a few weeks ago, and these were the... more »
|
|
"bad symbolic reference" comes and goes
|
| |
It seems that Scala 2.10.0 shows this error.. erroneously. Here's a
StackOverflow question:
[link]
Note that the missing type is `scala.Either`, and I can't imagine the
compiler getting that far without a valid Scala library on the classpath.... more »
|
|
more great moments in type caching
|
| |
Subtitle: "the evil that caches do"
scala> AnyRefClass.tpe eq AnyRefClass.typeConstructor
res0: Boolean = true
scala> AnyRefClass.tpe eq AnyRefClass.typeConstructor
res1: Boolean = false
|
|
Scala 2.10.2-RC1 is now available!
|
| |
We are very happy to announce the RC1 release of Scala
2.10.2-RC1<[link]>
If no serious blocking issues are found this will become the final 2.10.2
version.
The Scala team and contributors fixed 89 issues since
2.10.1<[link]>... more »
|
|
Adding bit-operations to RichInt/RichLong
|
| |
Hi, I added methods like bitCount, numberOfLeadingZeros, rotateLeft, ... which existed as static members on java.lang.Integer/java.lang.Lo ng to RichInt/ RichLong in this branch: [link] The reasoning behind it is to have - "all" operations in a single place, with a consistent API... more »
|
|
Late-Closure-Classes and specialization
|
| |
Background: "Late-Closure-Classes" refers to a code-generation technique internal to the new backend ( [link] ) that results in anon-closure-classes exposing the same API as before. If they're behaviorally identical to "traditional" anon-closure-classes, what's the point? Actually the new scheme sports several advantages (listed below) but... more »
|
|
where does this name come from?
|
| |
Welcome to Scala version 2.11.0-M3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_45).
Type in expressions to have them evaluated.
Type :help for more information.
scala> trait X extends scala.concurrent.ExecutionCont ext { val name = "" }
<console>:7: error: overriding value name in trait ExecutionContext of type String;... more »
|
|
Mailing list reminder: Scala-internals
|
| |
Welcome to the "Scala-internals" mailing list.
This automatic reminder is sent once a month to the list,
to keep subscribers up-to-date with the mailing list services,
and to help keeping the list on topic.
------------------------------ ------------------------------ -------
The "Scala-internals" mailing list:... more »
|
|
|