3 ms·
> or put throws everywhere Or put Result/Error etc. type everywhere. It’s literally analogous.
by kaba0 3y ago
> or put throws everywhere
Or put Result/Error etc. type everywhere. It’s literally analogous.
- bedobi 3y agoit's literally not, I'm sorry but folks who think this (and it's extremely common) simply haven't familiarized themselves with the differences
- kaba0 3y agoRepeating the same stuff won’t make it true.
- ackfoobar 3y agoGoing off-topic, I've been on both sides of seeing the analogousness or not. I think there might be two modes of thinking for deciding whether two things are analogous. Mathy people inspect the "shape" of, and interactions within the two things. Other people go for intuitive vibes. For more concrete stuff the two modes of thinking usually match up. Summation and multiplication are literally different things, but a lesson in group theory tells you (ℝ, +) and (ℝ⁺, ×) are isomorphic.
- kaba0 3y agoSomething being analogous to something else means, that there is a bidirectional function/mapping between the two. One can easily map any Result-typed expression to a checked exception one, and vice versa.
- deleted 3y ago[deleted]