you are viewing a single comment's thread
view the rest of the comments
[–] 7 points 6 months ago (1 child)

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 6 months ago (2 children)

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

  • source
  • parent
  • hideshow 4 child comments
  • [–] 3 points 6 months 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).

  • source
  • parent