• @[email protected]
    link
    fedilink
    03 months ago

    The problem with dynamic typing is you can’t always figure out what the type is even with investigation as it can be lots of things based on what is passed or returned. It also allows incorrect values to be passed.

    People will indeed make that readability argument but if the type is not obvious and important to understanding the code then it likely shouldn’t be used there.

      • @[email protected]
        link
        fedilink
        03 months ago

        I wouldn’t call bad readability a loaded gun really. Your dev tools will hopefully make it pretty easy to learn the type. It should be a minor inconvenience at best.

        • @[email protected]
          link
          fedilink
          English
          03 months ago

          I wouldn’t call bad readability a loaded gun really.

          Bad readability is a problem cause by the developer, not the language. Anyone can crank out unreadable symbol soup in any language, if that’s what they want/can deliver.

          Blaming the programming language for the programmer’s incompetence is very telling, so telling there’s even a saying: A bad workman always blames his tools.