• mlg@lemmy.world
    link
    fedilink
    English
    arrow-up
    65
    ·
    2 days ago

    Hey at least it’s not JavaScript which is perpetually high on crack with Object object

    • bleistift2
      link
      fedilink
      English
      arrow-up
      15
      arrow-down
      1
      ·
      2 days ago

      Well, that happens when you don’t override the toString method. Not worse than Java’s 0xf00cu

      • anton@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        2
        ·
        7 hours ago

        Hey, javas default toString gives you two informations:

        • type, not that the class names in many java projects are informative
        • identity, while the pointers are gibberish you can see if they are the same gibberish