322
OOP at home: (feddit.nu)
you are viewing a single comment's thread
view the rest of the comments
[-] firelizzard@programming.dev 6 points 1 day ago

When I first started using Go I bemoaned the lack of true inheritance and classes. Now I love it.

[-] Not_mikey@lemmy.dbzer0.com 1 points 20 hours ago

I thought it didn't have classes in name only, isn't a struct with methods basically a class?

[-] firelizzard@programming.dev 3 points 17 hours ago

Depends on what you mean by “basically a class”. If you mean inheritance, overriding, and more generally class/inheritance based polymorphism, no, it does not. Those require dynamic dispatch, which Go does not have (for concrete types, which is what we’re talking about here).

[-] lime@feddit.nu 3 points 19 hours ago

a class can be inherited from, a struct can not.

this post was submitted on 10 Feb 2026
322 points (95.7% liked)

Programmer Humor

29672 readers
717 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS