Effekt is a programming language created in 2020 by Jonathan Immanuel Brachth盲user.
#1036on PLDB | 4Years Old |
git clone https://github.com/effekt-lang/effekt
A language with lexical effect handlers and lightweight effect polymorphism.
def eager[R] { p: R / { Flip, Fail, Error } } = try {
Success(p())
} with Flip { () =>
resume(true) match {
case Failure(msg) => resume(false)
case Success(res) => Success(res)
case ParseError(msg) => ParseError(msg)
}
} with Fail { (msg) => Failure(msg)
} with Error { (msg) => ParseError(msg) }