| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Trying to make typechecker faster by (1) new subtyping (2) better
implicit caches. Disallowed '42 as a symbol. Added cache method to
Mutable Maps. Better complietion in interactive.
|
|
|
|
|
|
|
| |
Implementation and test cases for canEqual method in case classes. Now
the autogenerated equality method inquires with the argument as to
whether other.canEqual(this) before returning true.
|
|
|
|
|
| |
Made NamespaceBinding a case class; addresses ticket #2138.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
refined range positions some more; eliminated Array.withDims
|
| |
|
| |
|
|
|
|
|
| |
Reverted default parameters on RichInt range methods.
|
| |
|
|
|
|
|
|
|
| |
Separated default source code encoding (the one specified by -encoding)
from default system encoding, because otherwise you can't compile scala
with the defaults on OSX.
|
|
|
|
|
|
| |
fixed variance bug; added smart brace insertion to parser. moved
interactive compiler interface along.
|
|
|
|
|
|
| |
More work and documentation for GenericRanges, plus minor findbugs
noticed issues.
|
|
|
|
|
|
|
|
|
|
|
| |
Working my way toward a consistent interface for scala.io.Source.
Now all the Source factory methods whose input is something Byte
based rather than Char based require an implicit Codec, which will be
Codec.default if no implicit is available. The idea is that if one uses
the scala APIs, your desired encoding can be expressed as an implicit
value and it will always be used; and that we (if so inclined) can
change the default in one place.
|
|
|
|
|
|
|
|
| |
Some enhancements to Option to cover a variety of cases which have
come up repeatedly: Option factory which translates null to None
.orNull method on Options of nullable types filterMap implementation so
Option[T].filterMap => Option[U]
|
|
|
|
|
|
|
| |
scala.io.Codec for encapsulating charset encoding/decoding info, and
then uses that class as the world's first default/implicit parameter:
see BufferedSource.fromInputStream.
|
|
|
|
|
|
|
|
|
|
| |
Made some minor adjustments to Stream, having deprecated methods
actually use the implementation they recommend to everyone else, except
in those cases where doing so caused scalac to become unbuildable (e.g.
concat) or the suggested alternative doesn't actually exist (e.g.
fill(elem)). Also dropped the "drop" override as it appeared identical
to the inherited implementation.
|
|
|
|
|
| |
Ordering extend Comparator.
|
| |
|
|
|
|
|
|
|
|
| |
Attempted to resolve the improbable mess surrounding implicit
conversions from Unit. Modified test case which relied on the supposedly
verboten behavior; verbotenized () => AnyRef; added new test case which
fails if verboten behavior should ever return.
|
|
|
|
|
|
|
| |
and the various Int types all use different hashCode algorithms. This
means there is very broken behavior afoot among the types. I see no
option but to make numeric equals significantly less tricky.
|
|
|
|
|
| |
Created DelayedLazyVal for your def/val hybrid needs.
|
|
|
|
|
|
| |
Removed some useless type arguments which survived an earlier iteration,
and resolved an implicit ambiguity that snuck into SpecializeTypes.
|
|
|
|
|
| |
class Foo[@specialized("Int, Double") T] ..
|
|
|
|
|
|
|
|
|
| |
Created scala.reflect.Invocation, which offers an easy syntax for
reflective method calls, like: "abcdefgh" o 'endsWith("gh") // returns
Any
val res: Boolean = "abc" oo 'endsWith("z") // casts to expected type
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
(1) some changes to interactive compiler interface. 2) added
(symbol.hasTypeAt 3) Added flatten/transpose/unzip to TraversableClass
|
| |
|
|
|
|
|
|
|
|
| |
Adds @experimental annotation to lower the activation energy wall
between me and all my good ideas. Then took advantage of same to add
the experimental filterMap to Traversable. (I consider its goodness
undeniable, but its name at least is experimental.)
|
|
|
|
|
|
| |
Newly generated Tuple/Product/Function classes from new genprod, plus a
couple minor tweaks to genprod to keep tests happy.
|
| |
|
|
|
|
|
|
| |
attempted to bring Map/Set/Sequence/Iterable up to date with the methods
in their underlying classes.
|
|
|
|
|
| |
added headers, svn keywords, updated pilib examples
|
| |
|
|
|
|
|
|
|
| |
A RichClass for the java side which offers typed Constructors. Working
around bug #1560 and improving on the java interface. Also a small
experiment in the reflection department.
|
|
|
|
|
|
|
| |
Lots and lots of BigInt and BigDecimal code attempting to make it all
consistent and equality correct and consistent (to the extent that's
even possible.) I'll be glad when this is over.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Trying to bring BigDecimal all the way up to speed with its java
counterpart. Added a MathContext val and perform all operations with
that MathContext, and an apply method which accepts a math context so
you can e.g.:
val x = BigDecimal(1.0)
x / 3 // ArithmeticException
x(DECIMAL32) / 3 // 0.3333333
Also added most of the java BigDecimal methods which for whatever reason
weren't exposed by the wrapper.
Precision to infinity... and beyond!
|
| |
|
| |
|
|
|
|
|
|
| |
A couple findbugs inspired bugfixes, and a new trait
scala.util.Hashable, now used by GenericRange.
|
|
|
|
|
|
| |
Use `keySet' and `valueIterable' to get keys and values from a map as
non-iterator collections.
|
| |
|
|
|
|
|
| |
Tightened up XHTML minimization logic - closes #2043.
|
|
|
|
|
|
| |
fixed BeanProperty, added BooleanBeanProperty, added many tests (#1029,
#1751, #294, #1942, #1782, #1788, #637).
|