• 4 Posts
  • 234 Comments
Joined 2 years ago
cake
Cake day: July 26th, 2023

help-circle






  • PyrotoProgrammer HumorWho put this guy in charge
    link
    fedilink
    arrow-up
    11
    ·
    22 days ago

    Typing when you need it gives you more freedom over a toggle. You can choose to type some parts of the code while leaving other parts untyped.

    For example, if I’m writing a quick and simple Python script I may forgo typing, but when iterating on it I’d go back and add the types I need.


  • PyrotoProgrammer HumorWho put this guy in charge
    link
    fedilink
    arrow-up
    28
    arrow-down
    2
    ·
    edit-2
    22 days ago

    Python 3.x will never have static typing because that would break backwards compatibility.

    However, typing hints have been Integrated into Python for a while, and you are heavily recommended to use them, so your IDE can enforce typing.