scala/scala — pull request #830 by heathermiller (2012-07-05 16:36:52+00:00)
Title: SI-5981, SI-5979, SI-5973 Closed. Maintenance to Try.

review by @axel22 and @phaller
* Made some suggested changes to Try, including changing how we handle exceptions on certain methods, closing the above-referenced three tickets.
* Added a transform method to Try which completes `this` Try by applying the partial function `f` to `this` if `this` is of type `Failure`, or conversely, by applying a partial function `s` if this is a `Success`. (There is an analogue on Future)
* Moved NonFatal out of scala.concurrent and into scala.util.control and made it public (as it's sufficiently general to be used by more than just the concurrent package)
* Added `ControlThrowable` and `NotImplementedError` to the list of fatal Throwables in NonFatal
* Moved Either to scala.util, alongside of scala.util.Try, and added type aliases in the scala package object, so it's source compatible (this was discussed over lunch one day with Martin a few months ago)
* Added implicit conversions to Try instead of extractors, because extractors are a bit too shallow for code that might already be using Try. For example, methods aren't 1-1 between Either and Try leaving a user to have to explicitly convert to a Try anyway, which is cumbersome.
* Adds tests on Try
* Adds a fair amount of documentation