scala / bug

Scala 2 bug reports only. Please, no questions — proper bug reports only.
https://scala-lang.org
232 stars 21 forks source link

Deprecate scala.Cell (patch included) #4083

Closed scabug closed 13 years ago

scabug commented 13 years ago

= problem =

scala.Cell is an odd class that doesn't seem to be used anywhere.

= analysis =

I can't find a single reference to this class anywhere. Further, it seems like a pretty useless class; scala.Option is better suited to holding something with scala.Some providing a superset of this class' functionality.

= enhancement recommendation =

Deprecate it and refer users to scala.Option and scala.Some

scabug commented 13 years ago

Imported From: https://issues.scala-lang.org/browse/SI-4083?orig=1 Reporter: Dave Copeland (davetron5000) Attachments:

scabug commented 13 years ago

@paulp said: Neat, look how old it is. r220. (And earlier, but I don't have cvs records.)

commit 6f77053af4a97c51a2582b65f1a8ad67fd630eee
Author: odersky <odersky@5e8d7ff9-d8ef-0310-90f0-a4852d11357a>
Date:   Fri Feb 14 13:36:31 2003 +0000e

      Initial version.  

Here's the r220 version. I don't know if variance annotations existed yet.

package scala with {
  case class Cell[T](elem: T)
}

None of this of course is relevant to anything.

scabug commented 13 years ago

@hubertp said: Fixed in 23921 (wrote wrong bug number in the comment).