Top "Scala-2.8" questions

Version 2.8 of the Scala language for the JVM.

Scala 2.8: use Java annotation with an array parameter

I'm trying to implement an JavaEE Session Bean with Scala 2.8. Because it's a Remote Session Bean, i have to annotate …

scala scala-2.8
How do I exclude/rename some classes from import in Scala?

Language FAQ says import scala.collection.mutable.{_, Map => _, Set => _} should import all classes from package scala.collection.mutable, …

scala scala-2.8
Reflection on a Scala case class

I'm trying to write a trait (in Scala 2.8) that can be mixed in to a case class, allowing its fields …

reflection scala scala-2.8 case-class
How to access a field's value via reflection (Scala 2.8)

Consider the following code: class Foo(var name: String = "bar") Now i try to get the value and the correct …

reflection scala field invoke scala-2.8
Collection type generated by for with yield

When I evaluate a for in Scala, I get an immutable IndexedSeq (a collection with array-like performance characteristics, such as …

scala scala-2.8 scala-collections
What is the proper way to remove elements from a scala mutable map using a predicate

How to do that without creating any new collections? Is there something better than this? val m = scala.collection.mutable.…

scala scala-2.8 mutable scala-collections
Assigning scala empty array

I'm totally new to Scala. Here I have tried to assign a empty array to a variable, it was successful. …

scala scala-2.8
Scala pattern matching with lowercase variable name

I found that when using pattern matching with alternatives (for strings), Scala accepts variables starting with upper case (in the …

scala scala-2.8
Why does this explicit call of a Scala method allow it to be implicitly resolved?

Why does this code fail to compile, but compiles successfully when I uncomment the indicated line? (I'm using Scala 2.8 nightly). …

scala scala-2.8 implicit
Scala 2.8 TreeMap and custom Ordering

I'm switching from scala 2.7 and ordered to scala 2.8 and using ordering. It looks quite straight forward but I was wondering …

scala scala-2.8 treemap