▲ | taeric 8 hours ago | |
Yeah, I think I agree? It did amuse me how quickly this got annoying from the existence of String and how people use it. :D That is, I think this is what you are saying? That it wouldn't be hard to show that an Optional<String> is the same as a variable that is (String + None) or some such. But having Either<String, String> kills this, since there is no way to distinguish the left and right String types, there. Now, if you forced it to be Either<ErrorString, ResponseString>, that can work. And that nicely explains why you have to tag the types to be distinguishable from each other. |