you are viewing a single comment's thread
view the rest of the comments
[–] 8 points 2 days ago (10 children)

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.

  • source
  • parent
  • hideshow 10 child comments
  • [–] -2 points 2 days ago (9 children)

    Sure it will, just set x = 5, and it's not longer a list.

  • source
  • parent
  • hideshow 9 child comments
  • [–] 5 points 2 days ago (7 children)

    That's because it has typed values, not variables

  • source
  • parent
  • hideshow 7 child comments
  • [–] -2 points 1 day ago (6 children)
  • [–] 3 points 1 day ago (5 children)

    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)

  • source
  • parent
  • hideshow 5 child comments
  • [–] 1 point 1 day ago* (4 children)

    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.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 1 day ago (3 children)

    Perfectly chill over here, but I didn't find your comment funny. Shrug.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 day ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments