• Ethan@programming.dev
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    1
    ·
    1 day ago

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

      • Ethan@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        15 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).