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.
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.
Python has many great aspects, unfortunately it’s missing
strongstatic typing.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.
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.
There’s a special circle in hell for people who write Python without type annotations.
LLMs will cure this /s
Sounds like the Ruby code base at my work
Just type harder lol
Mash that keyboard