| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
The first working scalacheck test! Now Arbitrary is working for us
instead of our nemesis Capt. Entropy.
|
|
|
|
|
| |
Cleaning code: removed unused methods, type literals are a bit simpler.
|
|
|
|
|
|
| |
fixed headers/comments/svn props, made some progress with serializable
classes
|
|
|
|
|
| |
Workaround for by-name/implicit/default clash described in #2290.
|
|
|
|
|
|
| |
Added -Ynewarrays option which generates new array scheme. This is
necessary for a clean bootstrap.
|
| |
|
|
|
|
|
|
|
| |
Made canEqual abstract in Product and only inserted into case classes if
no concrete implementation is inherited. Restored the disabled canEquals
usages in collections.
|
|
|
|
|
|
|
|
|
|
| |
Split TaskRunner into FutureTaskRunner and TaskRunner. FutureTaskRunner
has an abstract Future[T] type member and inherits an abstract Task[T]
type member from TaskRunner. Implicit conversions enable tasks and
futures to be treated as parameter-less functions. This allows
TaskRunners to be used by actor schedulers without creating lots of
wrapper objects.
|
| |
|
| |
|
|
|
|
|
|
| |
Massive redesign so that: scala> "hi" == "hi".reverse.reverse gives: res0: Boolean = true
Preparing to do similar things to arrays.
|
|
|
|
|
|
|
|
| |
Generalized -Xdisable-assertions into an annotation (presently called
@elidable) so it can be used with arbitrary code. It takes an argument
which sets its priority level, and you can control what code is elided
from the command line by setting -Xelide-level to desired threshold.
|
|
|
|
|
|
|
|
|
|
| |
Created plausibly sensible equals and hashCode methods in
collection.{ Set, Map, Sequence } and made sure that none
of the derived collections is getting too excited about doing
its own thing and in so doing either breaking equals/hashCode
consistency or creating an asymmetric equals (or both.)
|
|
|
|
|
|
| |
added a few @serializable annotations, added @SerialVersionUID to
anonfuns, several cleanups
|
|
|
|
|
|
| |
Reintegrated DoubleLinkedList, SynchronizedBuffer, ArrayStack,
BufferProxy.
|
|
|
|
|
|
|
|
| |
Reverts scala.io.* to its natural state, and the rest of trunk to using
java.io.File. Anyone who wants to salvage any usable bits is of course
welcome to do so, so long as they also assume responsibility for those
bits.
|
|
|
|
|
|
|
| |
Converts some "lazy vals by hand" (probably predating the availability
of lazy vals) to lazy vals. Streamlined some Plugin(s) logic and took
minor advantage of scala.io.
|
|
|
|
|
| |
Created NoStackTrace trait and mixed it into ControlException.
|
|
|
|
|
|
| |
Removed custom UTF8 encoding implementation, deprecated all its methods,
and ran everything through java's built-in decoder.
|
|
|
|
|
|
| |
Minor refinements to recent patches, and the reversion of times. "It was
the best of times... it was the reversion of times..."
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Since I began using scala I have sought an appealing null coalescing
operator. Only now in this dark hour is it upon us! I should find a
better place for it, and the rest of my utility functions for dealing
sensibly with null.
|
|
|
|
|
| |
copyFile method.
|
|
|
|
|
|
| |
failIfExists argument (defaults to false) and eliminated the very
short-lived ensureDirectory and ensureFile.
|
|
|
|
|
|
| |
Factored the InputStream-based implementations out of File into
scala.io.Streamable, where they will eventually be reused by Source.
|
|
|
|
|
| |
More cleanup in nsc.io, and a toByteArray() method for File.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Brushing some of the cobwebs off the denizens of scala.xml. I am
removing bits of XML code which are clearly unfinished and which nothing
anywhere in the compiler or library uses.
|
|
|
|
|
|
| |
Starting some cleanup deeper in scala.xml in the hopes of reducing the
number of XML-related dependencies.
|
|
|
|
|
|
|
| |
Further work creating pure interfaces for the collections so we can
validate their contents. Also fixed an overly loose upper bound in
SequenceTemplate.
|
|
|
|
|
| |
A little smoothing the last patch with codecs and mkdirs().
|
|
|
|
|
|
|
|
| |
of the functionality that one can straightforwardly obtain from the
capabilities of java.io.File in java 5, but written with an eye on the
significantly more capable (if not significantly more appealing) nio2
API in openjdk.
|
|
|
|
|
| |
Blessing Iterator with another method from the Traversables.
|
| |
|
|
|
|
|
| |
Tightening the character range in random string generation.
|
|
|
|
|
|
| |
A few cleanups, and toXXX methods for BigDecimal and BigInteger so all
the numeric types have the same conversion methods.
|
| |
|
|
|
|
|
|
| |
Moves sorting into Iterable, and adds a convenience creation method to
the Ordering object.
|
|
|
|
|
|
|
|
|
|
| |
This is the beginning of a preventative effort to keep the collections
organization from drifting too far away from internal consistency. For
the various Proxy and Forwarder classes to be reliable and not missing
methods here and there, we need all methods defined in a canonical
location. I started organizing in collection/interfaces for the time
being.
|
|
|
|
|
|
|
| |
Moved zip/zipAll/zipWithIndex to Iterable and attempts to get all the
views and etc working correctly and consistently. Addresses ticket #2301
and then some.
|
|
|
|
|
|
|
|
| |
against in the past but I collected performance numbers on every
available approach to repeating something and this is by far the winning
combination in speed and clarity. Elaboration available if anyone still
feels strongly negative about it.
|
|
|
|
|
|
|
| |
Opening, experimental implementation of StringVector, since I wrote
all this yesterday and it'll be useful whether or not we the current
compiler-magic proposal for Arrays and Strings pans out.
|
|
|
|
|
|
| |
A bunch of cleanups around Ordered & Ordering, and provided
PartialOrdering with the "partial" part it had never been given.
|
|
|
|
|
|
| |
Removed some code which has been commented out since Apr 8 2004. I say
5.5 years is long enough to warrant a fresh start.
|
| |
|
|
|
|
|
|
|
| |
added manifests to most parts of standard library which deal with
arrays. One test is temporarily disabled, as it shows a deep problem
with multi-dimensional arrays (which was present all along).
|
|
|
|
|
|
| |
Swapped some Eithers around to try to get everyone in line with the
convention, which is failure in Left, success in Right.
|
|
|
|
|
|
|
|
| |
Removed ComparableTraversableOps and NumericTraversableOps in favor of
methods directly on Traversable. We can revisit this, but for the time
being I think it'd be wise to reduce the use of implicits wherever we
can easily do so.
|