• @stingpie@lemmy.world
    link
    fedilink
    102 days ago

    I refuse to believe the python one ever happens. Unless you are importing libraries you don’t understand, and refuse to read the documentation for, I don’t see how a string could magically appear from numeric types.

    • @expr@programming.dev
      link
      fedilink
      413 hours ago

      You don’t see how type mismatch errors can happen in a dynamically-typed language? Then why do they happen all the time? Hell, I literally had a Python CLI tool crash with a TypeError last week.

      • @stingpie@lemmy.world
        link
        fedilink
        210 hours ago

        That’s not what I’m saying at all. What I’m trying to say is that I can’t think of any way a program working with numeric types could start outputting string types. I could maybe believe a calculator program that disables exceptions could do that, but even then, who would do that?