Re:Can you use a class in C?
by diarrhea on Sunday August 13, 2023 @05:12PM
(#37114548)
One disadvantage here is taking the entire struct on each operation even if only a single part of it is needed. That can be much harder to deal with due to ownership rules (if &Mut self or all of self is taken). Free functions can be easier then.
[ Parent
| on HN ]
There are no comments on this comment yet.