loading...

re: Python Idioms in Go VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I think you should also state that Python is OOP and Go is not. Great comparison though!
 

It's OOP-ish, right? They just picked up a flavor of OOP:

  • Structs are like classes
  • Structs methods are like classes methods
  • Encapsulation is done through lower/upper case methods
  • Inheritance was not picked, but you can do composition

So, I'd say it's a kinda of OOP, just with less complexity.

What do you think?

 

Visit this for more info.

I think that Go is based on OOPs. So technically yeah.

Yeah, this FAQ helps, thanks :)

Code of Conduct Report abuse