4 ms·
I'm coming at this with Java semantics, apologies if that just doesn't work for you :) I'd make the constructor private, and move the validation into a public
by tsewlliw 15y ago
I'm coming at this with Java semantics, apologies if that just doesn't work for you :)
I'd make the constructor private, and move the validation into a public static factory method on the same class that returns an Either.