On Wed, Jan 9, 2013 at 9:36 PM, Julien Richard-Foy <notifications@github.com
> wrote:

> In documentation/manual/scalaGuide/main/json/ScalaJson.md:
>
> > @@ -326,6 +326,7 @@ jsres.fold(
> >
> >  jsres.map( s: String => // manage value )
> >       .recover( jserror: JsError => // manage errors)
> > +     .get
>
>  +1 for re-adding it with name recoverComplete
>
> We need to find a better name.
> And I’m not sure we really need to add another method. We already have
> fold that does exactly your combination of map, recover and get. Your
> example:
>
> jsres.map(s => ()) // Manage value
>     .recover(error => ()) // Manage error
>     .get
>
> Is equivalent to:
>
> jsres.fold(
>   errors => (), // Manage error
>   s => (), // Manage value)
>
> (In the case where you don’t supply a partial function to recover)
>
maybe:
recoverFinal
recoverResult


>  —
> Reply to this email directly or view it on GitHub<https://github.com/playframework/Play20/pull/662/files#r2596151>.
>
>