Most of the code at my current job doesn’t even have the optional type annotations. You just see like defsomething(config). What’s config? A dict? A list? A string? Who the fuck knows.
Unfortunately most of the developers seem to have a very pre-modern take on programming and aren’t interested in changing anything.
Dynamic typing is a great feature at times. It’s a pain in the butt other times. One of the things I like about Zig is being able to have opt-in comptime dynamic typing. For a certain class of problem it’s really nice.
Python has many great aspects, unfortunately it’s missing strong typing.
Just type harder lol
Mash that keyboard
Most of the code at my current job doesn’t even have the optional type annotations. You just see like
def something(config). What’s config? A dict? A list? A string? Who the fuck knows.Unfortunately most of the developers seem to have a very pre-modern take on programming and aren’t interested in changing anything.
Sounds like the Ruby code base at my work
LLMs will cure this /s
There’s a special circle in hell for people who write Python without type annotations.
Python is strongly typed, but not statically typed.
You’re right, that’s what I meant
Good news, everyone!
MyPy - Optional Static Typing for Python
Dynamic typing is a great feature at times. It’s a pain in the butt other times. One of the things I like about Zig is being able to have opt-in comptime dynamic typing. For a certain class of problem it’s really nice.