News for hackers. Stuff that matters.
Re:The use of `class` for things that should be simple free ... by twic on Thursday May 28, 2020 @03:48AM (#23334615)
Right. I think the article is talking about one very specific case, which is apparently common amongst novice C++ programmers, where there is a single computation, whose only inputs come from the constructor, and which gets done in a method.

There are plenty of cases where it makes sense to wrap a function in an object, but the point of the article is that this isn't one of them!

There are no comments on this comment yet.