Many Scala users, even very advanced ones, don't know that Seq (as defined in the package object scala) is *not* an alias for scala.collection.immutable.Seq like many other collection aliases (Set, Map, etc.). Actually Seq is an alias for scala.collection.Seq which could be immutable or mutable.
Therefore, if one does not explicitly import scala.collection.immutable.Seq, mutability can leak into APIs which are considered immutable. This is in contradiction to Scala making it easy to write immutable code. And it simply is dangerous. Any chance this can be fixed?
Thanks
Heiko
--
Heiko Seeberger
Twitter: @hseeberger
Blog: heikoseeberger.name
Company: Typesafe - The software stack for applications that scale
Author of "Durchstarten mit Scala, a tutorial-style Scala book"
