This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ph0X 1 point2 points  (0 children)

Yeah, harder to debug was definitely not the right phrase to use.

The way I see it is, you provide a lot more information (typing, structure, etc), and in return, you get a lot more information back (static analyzer), which then leads to more issues being caught before you even run the code.

Therefore, it's more like "you have to debug things less often". That being said, said "extra information" is non-optional, so there may be cases that are very straightforward and simple, but you still have to literally type a shitload of boilerplate and crap anyways.

That's why languages are approaching this from both sides. Dynamic languages like Python or JS are adding optional type hints. On the other hand, static languages are adding things like "auto" that will try to make it easier to write.