3 ms·
I picked up languages like that first and then picked up c later. I tend to miss lambdas more than classes in c. I'm not big on large class hierarchies, so cl
by ByteJockey 6y ago
I picked up languages like that first and then picked up c later.
I tend to miss lambdas more than classes in c.
I'm not big on large class hierarchies, so classes tend to be more about conceptual organization to me. And throwing a bunch of related function pointers into a struct and passing a pointer to the struct itself almost kinda looks like a class if you squint hard enough. It keeps everything organized.
Packing everything I need into a custom struct, coercing it to a void pointer, and passing it somewhere to emulate a closure, on the other hand, feels dirty.