ambivalence
ambivalence copied to clipboard
Jackson serializable?
Thanks for publishing an Either for Java! Could we make this Jackson-serializable, for use with distributed systems / message passing?
Tricky. I'd be minded to write a custom Jackson serialiser/deserialiser for it. It's not obvious what the representation should be -
{
"left": "leftValue"
}
or
[null, "rightValue"]
for example?
IMO it should be object.