3 ms·
>But after a couple of arguments, fields inside an object become more appealing -- this is about taste. I don't understand this. The difference between passing
by ImprobableTruth 6y ago
>But after a couple of arguments, fields inside an object become more appealing -- this is about taste.
I don't understand this. The difference between passing a structure implicitly or explicitly will always be a single argument.
>But even if you have free functions, as they become more complex, you tend to group them together, so at that point you might just slap the "class" keyword somewhere at the beginning of the file and just call it a class.
Sure, but at that point you're not really using any class features. If you're just using classes as modules, why not use modules directly?