• r1veRRR@feddit.de
    link
    fedilink
    arrow-up
    51
    arrow-down
    1
    ·
    10 months ago

    Compiler checked typing is strictly superior to dynamic typing. Any criticism of it is either ignorance, only applicable to older languages or a temporarily missing feature from the current languages.

    Using dynamic languages is understandable for a lot of language “external” reasons, just that I really feel like there’s no good argument for it.

    • SpaceCowboy@lemmy.ca
      link
      fedilink
      arrow-up
      7
      ·
      10 months ago

      Yeah the error list is my friend. Typos, assigning something to the wrong thing or whatever is fixed without having to run the code to test it. Just check the error list and fix any dumb mistakes I made before even running the thing. And I can be confident in re-factoring, because renaming something is either going to work or give a compiler error, not some run-time error which might happen in production weeks later.

    • spokenlollipop@lemmynsfw.com
      link
      fedilink
      arrow-up
      2
      ·
      10 months ago

      Even when you’re using a dynamically typed Lang you should be using all the appropriate scanners and linters, but so many projects just don’t.

      I joined a large project half way through and I ran pylint and stared as the errors (not just style stuff) poured out…

    • flakusha@beehaw.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      Dynamic languages are good for prototyping, especially if a lot of libraries available