News for hackers. Stuff that matters.
Re:The use of `class` for things that should be simple free ... by quietbritishjim on Thursday May 28, 2020 @09:07AM (#23336780)
I think you could apply your argument to any use of objects, unless there are virtual methods involved. So you probably would have to be pretty generally against the use of objects to agree.
Re:The use of `class` for things that should be simple free ... by tempodox on Saturday May 30, 2020 @08:20AM (#23360642)
Classes for use with stack-allocated instances in C++ are also very handy. Makes it easy to control the extent (i.e. lifetime) of the side-effects they produce.