News for hackers. Stuff that matters.
Re:Decoding JSON sum types in Go without panicking by incrudible on Wednesday March 19, 2025 @09:12PM (#43418997)
I have the exact opposite opinion, sum types naturally and logically model actual problems regarding data transformation, objects with methods obfuscate them, which is seldom a worthy tradeoff, even if it gives hypothetical business people a sense of understanding something (do they really?).

However, if you find yourself needing to use one of these regrettably ubiquitous languages that do not support them properly, it is gonna be painful either way.

There are no comments on this comment yet.