These are chat archives for lift/framework

Feb 2017
Antonio Salazar Cardozo
Feb 01 19:22
Still a super-nascent idea:
sealed trait Box[+T]
sealed trait PresenceBox[+T] extends Box[T]
sealed trait TryBox[+T] extends Box[T]
sealed abstract class EmptyBox extends Box[Nothing] // Empty or Failure
case class Failure(msg: String, exception: PresenceBox[Throwable], chain: PresenceBox[Failure]) extends EmptyBox with TryBox[Nothing]
case object Empty extends EmptyBox
case class Full[T](item: T) extends TryBox[T] with PresenceBox[T]