by kaashif · 4y ago · 0 comments
Great for readability when I'm wondering what type this parameter is supposed to be and what I can do with it.
You can obviously have documentation of types without static types, but static typing means you have ever-present compiler-verified documentation of types. Not always enough, but it's a lot more helpful than just having nothing.
Having exhaustive unit tests doesn't necessarily help with this.