Marc
05/07/2025, 2:34 PMcontext(raise: Raise<DomainError>)
fun <T> HttpClient.getSomethingFromNetwork(): T = with(raise) {
// network operator | raise(DomainError)
}
not sure if that’s the only way tho , but it feels odd the need to scope raise now 😕Alejandro Serrano.Mena
05/07/2025, 2:41 PMraise.raise
instead of just raise
for now
2. create your own context(raise: Raise<E>) fun <E> raise(error: E) = raise.raise(error)
function
3. wait for the upcoming arrow-raise-context
libraryMarc
05/07/2025, 2:43 PMcatch
one making it less intuitive to use.
2 seems a cool option! 3 ideal, nice