3 ms·
> Also, objects are best when used to represent actual objects (i.e. collections of data rather than collections of functions). Except these aren't objects, th
by naasking 8y ago
> Also, objects are best when used to represent actual objects (i.e. collections of data rather than collections of functions).
Except these aren't objects, they're just records. I don't think it's a good idea to pollute the word "object" or OOP. You use objects specifically when you need procedural abstraction, otherwise you use other types of values, like products/records, sums/variants, etc.
At high system levels, where you have client/server or other types of protocols, objects fit. At lower levels other paradigms tend to be better.