News for hackers. Stuff that matters.
Re:The use of `class` for things that should be simple free ... by ratww on Thursday May 28, 2020 @06:55AM (#23335851)
> Modules, which are typically used for namespacing, can have state

But there's nothing about state that makes it specific to classes. Namespaces in C++ can hold (static) state, for example. So it's actually the other way around: singleton classes can effectively be namespaces/modules.

There are no comments on this comment yet.