
#26 Dependency Injection - Why Do We Even...
Happy Path Programming
00:00
Is a Tupl the Right Data Model?
A sum type is the way to model something that can be either an a or a b, or a s or w. But in the case of something that can only return either an air or a value, a tupil is the wrong way to model that. So from a kind of pragmatic standpoint, a tupl can work. I mean, that's how go does it, ye. Its a it's like oka. You get a tuple back, and you can't just take the tupl and pass it to whatever's looking for it. It has two values, yes? And they're too mean, they don't have to have any relationship with each other. Ye
Transcript
Play full episode