News for hackers. Stuff that matters.
Re:Writing Python Like Rust by Hamuko on Thursday June 29, 2023 @04:23AM (#36517817)
And type hints aren't really that mature yet. If you look at the `typing` module's documentation in Python 3.11, there's 23 occurrences of the string "Changed in version". And the Python 3.12 version of the same document adds 9 more. Type hinting in Python is constantly evolving.
Re:Writing Python Like Rust by walthamstow on Thursday June 29, 2023 @10:25AM (#36520772)
That's the main reason we haven't adopted it at my place. We do have types of args and returns in docstrings though and it is enough for IDEs to do checks and suggestions from those types.