Rename `valueOrThrow` and `valueOrNull`
-
Slice.valueOrNullis unnecessary becauseEither.orNull()already exists -
Slice.valueOrThrowshould be renamedSlice.orThrow()for cohesion withEither.orNull()andEither.orNone() - Introduce
Slice?.orNull()andSlice?.orThrow()
After that, Ref.requestOrThrow and Ref.requestOrNull can be removed:
// before
val a = ref.requestOrThrow()
// after
val b = ref.request().orThrow()
Edited by Ivan “CLOVIS” Canet