3 ms·
Also check out boxes in scala, these are lovely to use: https://www.assembla.com/wiki/show/liftweb/Box https://www.assembla.com/wiki/show/liftweb/Box
by edmack 12y ago
Also check out boxes in scala, these are lovely to use:
https://www.assembla.com/wiki/show/liftweb/Box https://www.assembla.com/wiki/show/liftweb/Box
- pramalin 12y agoTry[1] in Scala standard library is also similar in concept. Erik Meijer covers this subject very well in his talks[2]. [1]The Try type represents a computation that may either result in an exception, or return a successfully computed value. http://www.scala-lang.org/files/archive/nightly/docs/library/index.html#scala.util.Try [2]http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2014/Keynote-Duality