Open scabug opened 13 years ago
Imported From: https://issues.scala-lang.org/browse/SI-4834?orig=1 Reporter: @Sciss Affected Versions: 2.9.0
@retronym said (edited on Dec 12, 2012 7:57:29 AM UTC):
Technically, we're not able to make this change without a deprecation cycle, as it might break source compatibility. (Consider code that calls an apply()
method on the returned That
.)
Missed opportunity in 2.13.
def dequeueAll[A1 >: A]: immutable.Seq[A1]
According to the Scala coding standards, methods with side effects should have empty parenthesis. Hence, in
collection.mutable.PriorityQueue
the dequeuing method isdequeue()
. However, thedequeueAll
method has only a single argument list which carries the implicitCanBuildFrom
. Thus you cannot callpq.dequeueAll()
.So if I'm not mistaken, the signature should be
?