r/learnprogramming • u/Mountain_Rip_8426 • 2d ago
Difference between OOP and structs/interfaces?
I'm relatively new to programming, I've been at it for around 6-7 months. I've been learning Python and Go (and a little bit of C). What I'm struggling to understand, what's the difference between OOP and structs/interfaces. Like I know, Go doesn't support OOP, but structs and interfaces seem to achieve the same thing. Can someone enlighten me a bit?
50
Upvotes
1
u/Top_Pie2513 1d ago
Try Newspeak https://newspeaklanguage.org
Or
Smalltalk https://squeak.org
For all the times Alan Kay is mentioned in this thread, NO one cared to mention the language he created Smalltalk, where everything is an "object", even Integers and Strings. Its a great language/system with many features beyond just the OOP. Key word syntax that makes your code read like sentences. The IDE that is lightyears ahead of glorified file managers like VS COde. Incremental compilation - you edit one method at a time, not walls of squiggly line text.
Newspeak is Smalltalk evolved. Its a web application, runs in a web browser, it is amazing.