this post was submitted on 12 Feb 2026
44 points (92.3% liked)

Programming Humor

3448 readers
1 users here now

Related Communities !programmerhumor@lemmy.ml !programmer_humor@programming.dev !programmerhumor@kbin.social !programming_horror@programming.dev

Other Programming Communities !programming@beehaw.org !programming@programming.dev !programming@lemmy.ml !programming@kbin.social !learn_programming@programming.dev !functional_programming@programming.dev !embedded_prog@lemmy.ml

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Agility0971@lemmy.world 2 points 4 months ago

Why not create methods in the struct? Type would be just a pointer to a function. Ez