• exu@feditown.com
      link
      fedilink
      English
      arrow-up
      8
      ·
      17 天前

      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
              ·
              16 天前

              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
                ·
                16 天前

                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.

                  • NocturnalMorning@lemmy.world
                    link
                    fedilink
                    arrow-up
                    1
                    ·
                    16 天前

                    So chill that you felt the need to explain programming to me. If you didn’t care, you could have just moved on with your life, and scrolled past my comment.

      • NocturnalMorning@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        17 天前

        Maybe so, but it’s completely optional. I’ve been coding in python since the 2.7 days, and I still barely know the syntax for type hints in python.