• @TrustingZebra
    link
    410 months ago

    How is dynamic typinf faster? Is typing num = 1 instead of int num = 1 really that much faster?

    • GaveUp [she/her]
      link
      fedilink
      English
      2
      edit-2
      10 months ago

      It’s not just the physical typing

      It’s the fact that you can be extremely flexible with data structures and variables

      E.g. you can have a list of strings and ints in Python but not java

    • @colonial@lemmy.world
      link
      fedilink
      110 months ago

      Plus, most statically typed languages either do type inference by default or let you opt in somehow.

      Even Java, which is probably the reason everyone hated static typing for the first decade of the century or so, now has var.