3 ms·
> Take @dataclass in python for example, that’s similar to Struct for Ruby. From a cursory look data classes seem to do a lot more than structs. Structs seem l
by masklinn 4y ago
> Take @dataclass in python for example, that’s similar to Struct for Ruby.
From a cursory look data classes seem to do a lot more than structs. Structs seem like a mutable version of namedtuples, or js objects, down to behaving like a collection / iterable.