| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
to have command line options following source files, at the price of
temporarily breaking tools/pathResolver. Working my way through all the
usages of classpath in trunk zeroing in on fully consistent handling.
Review by community.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Discovered that List's deprecated removeDuplicates didn't survive the
renaming of unique to distinct. No review.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Made a whole WithFilter class for Option after discovering this bug:
scala> def f(x: AnyRef) = for (p <- Option(x)) yield p
f: (x: AnyRef)Option[AnyRef]
scala> def f(x: AnyRef) = for (p <- Option(x) ; if true) yield p
f: (x: AnyRef)Iterable[AnyRef]
The for comprehension logic apparently prefers to convert Option to
Iterable to get at the withFilter method over using Option's filter.
|
|
|
|
|
|
| |
Some hardening in the repl, and removing some functions which now exist
in the standard library. No review.
|
|
|
|
|
|
| |
into the compiler so Traversers can define whatever apply is relevant to
them. No review.
|
|
|
|
|
|
| |
Unique's seeming victory is overruled by committee. It is "distinct",
not "unique", wherein lies the nub. No review.
|
|
|
|
|
|
|
| |
Noticed that all the system properties were being read into vals so they
didn't notice changes. Determined this was not correct, and changed them
into defs. No review.
|
|
|
|
|
| |
Fixed XML Utility.escape method to conform to XML spec. Closes #3014
|
|
|
|
|
|
|
|
|
| |
Striking while the iron is hot, renamed removeDuplicates to unique and
deprecated removeDuplicates. The debate between distinct and unique was
vigorous but unique won by a freckle. (Dark horse 'nub' was disqualified
for taking performance enhancers.) The only thing which might need
review is the choice of name, but review by odersky.
|
|
|
|
|
|
| |
Made sliding/grouped throw an exception when read past the end. Closes
#3017.
|
|
|
|
|
|
|
|
| |
It was pointed out that sorted and the 1-arg version of sortWith are the
same method, one with implicit argument, one without. Since sortWith has
never exist in a release, we can un-overload it (which is a win anyway)
and route everything through sorted. Review by moors.
|
|
|
|
|
|
|
|
|
|
|
|
| |
rewriting the Sorting methods to accept Orderings and adding a sorted
method to SeqLike, because we should all be pretty tired of writing
".sortWith(_ < _)" by now. I think it should be called "sort", not
"sorted", but that refuses to coexist gracefully with the deprecated
sort in List.
Review by moors (chosen pretty arbitrarily, someone at epfl should
review it but I don't know who deserves the nomination.)
|
|
|
|
|
|
|
|
|
| |
Hid some AST nodes from the prying eyes of reflectors. Now Parens,
AssignOrNamedArg, and DocDef are known only to scalac. Also some
cosmetic arranging in the new reflect.generic package, because there's
never a better time than when the code is still warm from the compiler.
Review by odersky.
|
|
|
|
|
|
|
| |
Continuing the fine work creating an abstract interface to the compiler
in scala.reflect.generic, promoted Trees#Traverser and made the
associated changes. Review by odersky.
|
|
|
|
|
|
| |
Removed scala.util.NameTransformer (it moved to reflect.) We don't have
to @deprecate it since it's never been in a released version. No review.
|
| |
|
|
|
|
|
|
| |
lifted out core compiler data structures into reflect.generic package.
Made Unpickler work on generic data.
|
|
|
|
|
| |
Seq[Node]" means never having to meet your base case. No review.
|
|
|
|
|
|
| |
Solidified the logic of stringOf for repl results printing. Closes #726.
Review by community.
|
|
|
|
|
|
|
| |
A few compiler IO lib bits I have been needing: some basic conveniences
for directories and sockets, and some cleanups in CompileSocket. Review
by community.
|
|
|
|
|
|
|
| |
Implemented rompf's suggested improvement to the tail recursive
combinators, avoiding re-evaluation of by-name argument. Score one for
code review. No review. (Ironic.)
|
|
|
|
|
|
| |
Added hashCode implementations to Manifest types where necessary. Closes
#2838. No review.
|
|
|
|
|
|
| |
Fixed a number of faulty Scaladoc comments in library and compiler
sources. No review.
|
|
|
|
|
|
| |
Access modifiers added for certain members and some refactoring in
Regex.
|
| |
|
|
|
|
|
|
| |
Replacement in matching can now be done by providing function arguments
for replacement. Fixes #2761. Review by phaller.
|
|
|
|
|
|
|
|
|
|
|
|
| |
a proper commit message, I will just say it adds a couple of pretty
frabjous features, in addition to cleaning up a whole bunch of
questionable code.
* Tab-completion now chains through intermediate results on fields and 0-arg methods
* You can now define custom Completors which define their own contents.
Details and demos to come in a wiki document about the repl.
|
| |
|
| |
|
|
|
|
|
|
| |
Iterators created with duplicate compare equal if they are positioned at
the same element. Review by community.
|
|
|
|
|
|
|
| |
More work consolidating the XML code needlessly duplicated between
the compiler and the library. Having to fix #2354 in two completely
different places was I found very motivating.
|
|
|
|
|
|
|
| |
Tail-recursive implementations of parser combinators rep1 and repN,
which covers all of them since the others go through those. Review by
rompf.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Adjectified some parts of speech as discussed on the mailing list. The
methods to call on FunctionN are "curried" and "tupled" with "curry"
deprecated and "tuple" gone. Closes #2907. Review by community.
|
| |
|
|
|
|
|
|
| |
Made Iterator consistent with Iterable by adding grouped and sliding to
IterableLike. Closes #2837. Review by community.
|
|
|
|
|
| |
Review by dragos.
|
|
|
|
|
| |
Reverted over-zealous replacement of 'PartialFunction' with '=>?'.
|
| |
|
|
|
|
|
|
|
|
| |
JavaConversions now include conversions between Java ConcurrentMap
objects and Scala ConcurrentMap objects.
review by odersky
|
|
|
|
|
| |
Added ConcurrentMap and Properties conversion classes and test.
|
|
|
|
|
|
| |
Reverts r20311 since I'm not seeing what's going on in #2876 and the
optimization can wait.
|
|
|
|
|
|
| |
examples of equality comparisons which are guaranteed to return false
because someone is not comparing what they think they're comparing.
|
|
|
|
|
|
| |
Overrode slice in the StringLike derivatives to use substring. Closes
#2895. Review by community.
|
|
|
|
|
|
|
| |
- fixed a bug in closure elimination causing VerifyErrors
- fixed a broken assert in GenICode that fired when -Ydebug was used
- added final modifiers
|