Kev
context(Raise<Error>, Logger) fun myFunction(value: Int): String { debug("this is a debug message") ensure(value > 1) { Error() } return "Yay!" }
either { with(LoggerFactory.getLogger(this::class.java)) { // No required context receiver found: Cxt { context(arrow.core.raise.Raise<kotlin.Error>, org.slf4j.Logger) // public fun myFunction(value: <http://kotlin.Int|kotlin.Int>): kotlin.String myFunction(3) } }
A modern programming language that makes developers happier.