In the result4k, I was wondering if `dev.forkhandl...
# forkhandles
d
In the result4k, I was wondering if
dev.forkhandles.result4k.Result4k
should be the default 🤔 Because
dev.forkhandles.result4k.Result
will inevitably clash with
kotlin.Result
. And since IntelliJ doesn’t keep typealiases when refactoring, the codebase ends up as a mix of
Result4k
and
Result
.
a
It is an annoying issue yes. I've taken to using
Result4k
everywhere so I don't have to fuss with the imports.
💯 1
d
We could switch them for sure.
n
The class name Result4k makes me sad
Maybe we should use Outcome, like Uberto does
Or Upshot
d
I think
Outcome
is a bit less funky than
Upshot
. Should the library be renamed to outcome4k then? 😅 Another option is to have compiler/IDE plugin to enforce that `Result`s are not mixed 🤔 (And also always handled.)
n
A compiler plugin to enforce that Outcomes are always handled would be awesome
a
I'm not so bothered by
Result4k
, but a quick look at a thesaurus reveals
Verdict
,
Answer
, or
Product
🤔