2 ms·
> In haskell, structs are defined with the keyword data. Maybe that is where the inspiration comes from. In Haskell, Rust and Python you can also just have tup
by eru 4y ago
> In haskell, structs are defined with the keyword data. Maybe that is where the inspiration comes from.
In Haskell, Rust and Python you can also just have tuples, if you want to. In Haskell you can use `newtype` or `type` to name your tuples and use them as records.
Of course, as you say, you can also use the `data` keyword in Haskell. Or you can use church encoding to use functions as records..
Lots of (confusing) possibilities.