• pivot_root@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    2
    ·
    edit-2
    7 days ago

    I strongly prefer how interfaces are handled

    It’s better than Java, but they still chose to walk headfirst into the same trap that bites Java developers in the ass: associating interface implementations with the struct/class rather than the interface itself.

    When you have two interfaces that each require you to implement a function with the same name but a different signature, you’re in for a bad time featuring an abomination of wrapper types.

    Edit: Clarity.

    • TunaCowboy@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      3
      ·
      7 days ago

      just one more oop bro I swear

      Pure oopium. All oop ‘design patterns’ exist solely to overcome the inherent flaws of oop.

      • pivot_root@lemmy.world
        link
        fedilink
        arrow-up
        4
        arrow-down
        1
        ·
        edit-2
        7 days ago

        just one more oop bro I swear

        Didn’t understand my criticisms of Go and Java’s interfaces, or do you just enjoy LARPing as a senior programmer while living in a small world where the term “interface” strictly means object-oriented programming and not the broader idea of being a specification describing how systems can interact with each other?