4 ms·
Yeah, that was the ‘aha’ moment for me, realising that “objects” were just a struct and a bunch of functions that work with that struct.
by taneq 3y ago
Yeah, that was the ‘aha’ moment for me, realising that “objects” were just a struct and a bunch of functions that work with that struct.
- SoftTalker 3y agoI still mostly just do the struct and functions approach. OO is so much harder conceptually for my brain.
- justinclift 3y agoIf you're ever interested in Go (the language), that's pretty much how it does stuff. Define a structure, and then add some functions for that structure. Works pretty well.