--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
The lift framework has a "tri-state" version - Box:It has a: Full an Empty and a Failure.But it seems to me that way you loose the information of whether it means a Option[Try[...]] or a Try[Option[...]] ...David
On 12/6/2013 11:44 AM, Filippo De Luca wrote:
Hi,
I have a newbie question here: "Does it make sense to have a method returning Try[Option[...]]? or I should map the None case in an Exception?
The scenario I am looking to a Repository that can return None if the record is not present in the storage but the storage can also raise an exception like network exception. Maybe I'm missing the point and I should use Try only for recoverable exception?
Thanks for any clarification.
--You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+unsubscribe@googlegroups.com.
Hi Filippo,
By coincidence I have just seen your type on video lecture 1 of week 4 of the Reactive Programming course on Coursera. Its the initial explanation on Observables. Thanks for easing out my understanding of the explanation. :)
Regards.
--You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+unsubscribe@googlegroups.com.