• Bobby Turkalino@lemmy.yachts
    link
    fedilink
    English
    arrow-up
    9
    ·
    11 days ago

    The “but muh types” criticism of Python has always been completely ignorant of the main use cases of Python. Like yeah, probably shouldn’t use it in avionics or medical devices. But scientific computing where you’re basically just using the interpreter as a calculator? You really only care about whether something’s an integer or not. Float vs. double isn’t gonna kill you

    • sugar_in_your_tea@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      11 days ago

      We use optional types everywhere for our server code, and that works really well. Not sure what if not variable: means? Just look at its type, no big deal. We don’t annotate everything, but we annotate enough that static analysis tools can tell us what the type of pretty much any variable is. And most of the time, it’s not even necessary because the variables are clear enough that the type can be inferred.

      So yeah, not an issue.