• exu@feditown.com
    link
    fedilink
    English
    arrow-up
    8
    ·
    5 days ago

    OTOH, Python has strong dynamic typing. I.e. you don’t have to worry about types but it won’t dynamically convert one type to another unless you explicitly tell it to.

          • FishFace@piefed.social
            link
            fedilink
            English
            arrow-up
            3
            ·
            4 days ago

            Because you are embarrassing yourself and noone has been kind enough to explain: the difference is that JavaScript will let you do: var x = 1 + "foo" and coerce the types, in python that’s an error.

            Untyped python lets a name refer to different types over its lifetime (dynamic typing) but will not automatically convert types (which would be weak typing)

            • NocturnalMorning@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              4 days ago

              It was just a joke, chill out. Someone mentioned python so I made a joke about python. I have never used Javascript, and I have no desire too.

              Fucking programmers sometimes…ya’ll take this stuff way too seriously.