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 @10:58AM (#23338048)
In what way do you 'need' a class? It uses none of the features that a class provides over normal structs.
Re:The use of `class` for things that should be simple free ... by simiones on Thursday May 28, 2020 @11:43AM (#23338608)
The idea is, if you need the functionality that classes give you (passing the implicit state between multiple calls), why not use the special syntax for that use case?