summaryrefslogtreecommitdiff
path: root/src/library
Commit message (Collapse)AuthorAgeFilesLines
* Fixes and closes #4461. No review.Aleksandar Pokopec2011-05-041-0/+5
|
* Fixes and closes #4535.Aleksandar Pokopec2011-05-041-1/+16
| | | | | No review.
* Moved unapplySeq down to SeqFactory.Aleksandar Pokopec2011-05-042-10/+11
| | | | | Review by extempore.
* Added a @bridge'd $scope back to scala package ...Paul Phillips2011-05-011-1/+6
| | | | | | Added a @bridge'd $scope back to scala package object for binary compat. No review.
* Reducing the sbt launcher footprint by eliminat...Paul Phillips2011-05-0127-193/+53
| | | | | | | | | | | | Reducing the sbt launcher footprint by eliminating val references which go through the scala package object, since they lead to otherwise unnecessary classes becoming required at startup. Mostly this means library files with constructors like "Iterator.empty" or "Stream.continually" receive a direct import of that companion. The one slightly less than cosmetic change was moving the strange xml value "$scope" back into Predef, because otherwise I have to touch the xml code generation. No review.
* Realized how noisy the @deprecated-takes-two-ar...Paul Phillips2011-05-011-4/+5
| | | | | | Realized how noisy the @deprecated-takes-two-arguments message was and quieted it down. Oh, and documented the arguments. No review.
* Since I don't want to commit anything "interest...Paul Phillips2011-05-012-3/+3
| | | | | | | | Since I don't want to commit anything "interesting" until we ship 2.9, a few uninteresting cleanups involving how types are printed, getting some debugging code in shape to prepare for the long winter ahead, etc. No review.
* After having to update the code for someone els...Paul Phillips2011-04-3010-12/+12
| | | | | | | After having to update the code for someone else, ran damarau levenshtein on trunk again. Patchwise, I guess correcting spelling errors in comments is about as safe as it gets. No review.
* removed legacy library code (package scala.mobile)michelou2011-04-292-306/+0
|
* I wrote a warning when nullary methods return U...Paul Phillips2011-04-2827-59/+59
| | | | | | | | | | | | | | | I wrote a warning when nullary methods return Unit. I wimped out of including it in this patch because we had about 200 of them, and that's what is fixed in this patch. I will add the warning to some kind of "-Xlint" feature after 2.9. This is motivated at least partly by the resolution of #4506, which indicates the distinction between "def foo()" and "def foo" will continue to jab its pointy stick into our eyes, so I believe we have a minimal duty of at least following our own advice about what they mean and not making a semirandom choice as to whether a method has parens or not. Review by community.
* Cleaned up some hopelessly atrophied documentat...Paul Phillips2011-04-272-42/+17
| | | | | Cleaned up some hopelessly atrophied documentation, no review.
* Fixed a booch I made in io.Position's positioning.Paul Phillips2011-04-271-1/+1
| | | | | Closes #4498, no review.
* More bridges in collections. Review by prokopec.Martin Odersky2011-04-279-5/+34
|
* Added a bunch of bridges to make ameliorate bin...Martin Odersky2011-04-2431-285/+604
| | | | | | Added a bunch of bridges to make ameliorate binary compatibility of new collections. Review by prokopec. Review by extempore.
* Enclosed the out of bounds index with some IOOB...Paul Phillips2011-04-242-24/+2
| | | | | Enclosed the out of bounds index with some IOOB exceptions, no review.
* Fixing a BaseBerrySethi bug I introduced in r19...Paul Phillips2011-04-221-2/+0
| | | | | | Fixing a BaseBerrySethi bug I introduced in r19842. Patch by buraq, no review.
* Added bridge method capability to compiler.Martin Odersky2011-04-214-5/+19
|
* One of the blips in the performance charts seem...Paul Phillips2011-04-208-18/+73
| | | | | | | | | | One of the blips in the performance charts seems to implicate some changes I made with slice to reduce the number of implementations and surface area for inconsistencies and bugs. Altering those changes in a more performance-mindful way, although I don't see anything here which is likely to help much. Also fixing some wrong documentation about copyToArray. No review.
* Some tweaks to slice to make it run faster, no ...Paul Phillips2011-04-202-2/+12
| | | | | Some tweaks to slice to make it run faster, no review.
* Removed GenTravOnceLike and TravOnceLike, put t...Aleksandar Pokopec2011-04-1936-927/+875
| | | | | | | | | Removed GenTravOnceLike and TravOnceLike, put their functionality to GenTravOnce and TravOnce. Remove immutable Gen* traits. Removing mutable Gen* traits. No review.
* Revised that last botched commit. No review.Paul Phillips2011-04-171-11/+23
|
* Added releaseVersion and developmentVersion to ...Paul Phillips2011-04-171-4/+23
| | | | | | Added releaseVersion and developmentVersion to Properties so people don't all have to parse the versionString. No review.
* Couple of fixes to the usecases in docs.Aleksandar Pokopec2011-04-153-11/+11
| | | | | No review.
* Having been tortured by remorse ever since tiar...Paul Phillips2011-04-156-282/+251
| | | | | | | | | Having been tortured by remorse ever since tiark told me that r23934 had made the hashmap slower, I crushed my previous efforts under the heel of my boot, threw all the types out the window, poured acid on them, and turned all the dials to the far other extreme. Pity the man who will sell his soul for a few CPU cycles. (I am that man.) Review by rompf.
* Various addenda to soc's patch: regenerating Pr...Paul Phillips2011-04-1436-69/+67
| | | | | | | Various addenda to soc's patch: regenerating Product/Tuple/Function classes and AnyVal sources, making versioning consistent, etc. Closes #4477, no review.
* Adds "since" field to @deprecated.Paul Phillips2011-04-1470-296/+317
| | | | | | for the patch, as it's a change I've always wanted. Moving up in the glamorous world of scala commits! No review.
* Adding some docs refactorings.Aleksandar Pokopec2011-04-1416-925/+997
| | | | | | | Also, added some docs variables to Gen* traits that were missing. No review.
* Doing a little polishing on the parallel collec...Paul Phillips2011-04-1415-91/+67
| | | | | | | | | | | | | Doing a little polishing on the parallel collections refactor (which overall looks like a big improvement.) I went for some simpler wording and moved a number of scaladoc tags around because the rug had been pulled out from under their feet. This leaves a lot undone, but since many of the docs need to be reworded before they can move from e.g. SeqLike to GenSeqLike, and I'm not well informed on exactly how these abstractions are being presented, I stayed in the safe zone. Review by prokopec.
* Tests which run have to be called "Test".Paul Phillips2011-04-142-1/+1
| | | | | and renames file to avoid ant's brainlessness, no review.
* Further fixes #4405.Aleksandar Pokopec2011-04-133-0/+24
| | | | | No review.
* Fixes and closes #4405.Aleksandar Pokopec2011-04-131-1/+1
| | | | | No review.
* Refactoring the collections api to support diff...Aleksandar Pokopec2011-04-13160-1904/+3601
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring the collections api to support differentiation between referring to a sequential collection and a parallel collection, and to support referring to both types of collections. New set of traits Gen* are now superclasses of both their * and Par* subclasses. For example, GenIterable is a superclass of both Iterable and ParIterable. Iterable and ParIterable are not in a subclassing relation. The new class hierarchy is illustrated below (simplified, not all relations and classes are shown): TraversableOnce --> GenTraversableOnce ^ ^ | | Traversable --> GenTraversable ^ ^ | | Iterable --> GenIterable <-- ParIterable ^ ^ ^ | | | Seq --> GenSeq <-- ParSeq (the *Like, *View and *ViewLike traits have a similar hierarchy) General views extract common view functionality from parallel and sequential collections. This design also allows for more flexible extensions to the collections framework. It also allows slowly factoring out common functionality up into Gen* traits. From now on, it is possible to write this: import collection._ val p = parallel.ParSeq(1, 2, 3) val g: GenSeq[Int] = p // meaning a General Sequence val s = g.seq // type of s is Seq[Int] for (elem <- g) { // do something without guarantees on sequentiality of foreach // this foreach may be executed in parallel } for (elem <- s) { // do something with a guarantee that foreach is executed in order, sequentially } for (elem <- p) { // do something concurrently, in parallel } This also means that some signatures had to be changed. For example, method `flatMap` now takes `A => GenTraversableOnce[B]`, and `zip` takes a `GenIterable[B]`. Also, there are mutable & immutable Gen* trait variants. They have generic companion functionality.
* Pulled daemonized from the process API based on...Paul Phillips2011-04-112-7/+8
| | | | | | Pulled daemonized from the process API based on input from harrah. No review.
* Found there was still all kinds of detritus rem...Paul Phillips2011-04-112-13/+2
| | | | | | | | Found there was still all kinds of detritus remaining from the deceased IMPLICITMETHODtpe and ImplicitMethodType. Applied wrecking ball, review by moors. (Can I do the same thing with DEBRUIJNINDEXtpe and DeBruijnIndex?)
* Changed scala.io.Position into something other ...Paul Phillips2011-04-103-77/+65
| | | | | | Changed scala.io.Position into something other than a fixed object which throws exceptions when the position overflows. Closes #4382, no review.
* More fun with xml and elements not appearing eq...Paul Phillips2011-04-103-16/+4
| | | | | | More fun with xml and elements not appearing equal. Closes #4387, no review.
* Made power mode more configurable.Paul Phillips2011-04-073-0/+9
| | | | | | | | | | | | long-term configuration answer, but what I have any chance of doing before 2.9 ships. // file to interpret when entering power mode instead of default -Dscala.repl.power.initcode=/path/to/file // file holding banner to display instead of default -Dscala.repl.power.banner=/path/to/file No review.
* Added a comment to Dynamic sharing that if you ...Paul Phillips2011-04-071-4/+5
| | | | | | Added a comment to Dynamic sharing that if you don't supply mr. -Xexperimental, it won't work. No review.
* Update documentation of MutableList.Donna Malayeri2011-04-061-2/+1
|
* Misc cleanups and crash avoidance, no review.Paul Phillips2011-04-061-12/+6
|
* Fixes #4298, by correcting doc commentMartin Odersky2011-04-051-3/+2
|
* A less ad hoc infrastructure for generating Any...Paul Phillips2011-04-019-29/+46
| | | | | | A less ad hoc infrastructure for generating AnyVal sources. A few more comments on said sources. No review.
* Working on the documentation of core classes.Paul Phillips2011-04-0112-83/+298
| | | | | | | | withdraw some of the goodness I banked a while ago with the AnyVal types. Started on what will culminate in the total elimination of SourcelessComments. Cleaned up the docs on ancient classes like Product. More to come. No review.
* A quick fix for the weird string output one get...Paul Phillips2011-03-311-3/+7
| | | | | | A quick fix for the weird string output one gets in the repl when calling .par. No review.
* Emptiness check in swing, closes #1578 no review.Paul Phillips2011-03-311-1/+0
|
* Warn about unqualified names in scaladoc links ...Paul Phillips2011-03-301-1/+1
| | | | | | | Warn about unqualified names in scaladoc links because they don't work. I think it would be better to just make them work, but the way things are structured it looks involved. Closes #3696, no review.
* Addressing most of the warnings revealed by the...Paul Phillips2011-03-3026-91/+59
| | | | | | Addressing most of the warnings revealed by the patch to warn about unknown scaladoc variables. Updated and reran genprod. No review.
* Issue warning when doccomments have $variables ...Paul Phillips2011-03-303-11/+23
| | | | | | | | | | | | | | Issue warning when doccomments have $variables which go unfulfilled. Started with patch by dmharrah. Noticed expandVariables never incremented its recursion guard and ended up rewriting it. To avoid spurious warnings you can escape $'s, as in this comment: /** The decoded name of the symbol, e.g. `==` instead of `\$eq\$eq`. */ The above will be ignored during expansion and translated to $eq$eq for output. Closes #4412, no review.
* A bunch of scaladoc cleanups.Paul Phillips2011-03-2925-93/+36
| | | | | | | | the wrong places, tags saying the wrong thing. I sorted types and values so deprecated ones are at the end. I think they should be hidden by default, but this is a big improvement. Leaving #3914 open so they can be made invisible. No review.
* Made ScalaRunTime.stringOf more general by sepa...Paul Phillips2011-03-281-9/+11
| | | | | | | Made ScalaRunTime.stringOf more general by separating out the part which formats it for a repl result, and cleaned up some string functions around the repl. No review.