News for hackers. Stuff that matters.
Re:The use of `class` for things that should be simple free ... by ImprobableTruth on Thursday May 28, 2020 @11:07AM (#23338195)
>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?

There are no comments on this comment yet.