Why you SHOULD be using Type Hints in Python
ฝัง
- เผยแพร่เมื่อ 5 ก.ย. 2024
- What's up guys? Today we're going to be looking at something that a lot of programming languages require, and which is also completely optional in Python. Yes, we're going to be talking about type hints, how it works, and how it can save us hours of debugging.
I started doing this when I saw it done in your videos, because I though it looked professional, but I didn't really see a reason why. But since I've started using it extensively, I've noticed how many errors I have actually caught from it. Definitely a good thing to use.
I don't know how common it is in Python today. I personally love using it and it's very liked in every other programming language because it helps us avoid future errors. I'm happy to hear you were inspired!
wow how did i miss this? its quite useful
Useful info in a short amount of time. Thanks
Thank you