Got some ideas to improving Result while adding the Type arguments from that other (already merged) PR.
it's mostly about:
make all methods of, it's odd to have them all called differently.
(marked the former empty and from as depecated, did not delete anything.)
add one of to create Results from Optionals
add upperbound on the Type parameter :
this is up for discussion as i played around with the dependencies and relocated an interface. if you do not approve of this, i'll revert it.
Got some ideas to improving
Result
while adding the Type arguments from that other (already merged) PR.it's mostly about:
of
, it's odd to have them all called differently. (marked the formerempty
andfrom
as depecated, did not delete anything.)of
to create Results from Optionals