Johanno
link
fedilink
71Y

Python was typeless. And it was common to reuse variables with different types of content.

So you at some point never knew what actually is within the variable you are using.

Using typing in python solve 95% of your problems of having runtime errors instead of compile errors

Agreed. Mypy pre-commit hooks are very useful if you’re starting a fresh project. Adding typing to an existing project which reuses variables with different types… We lost weeks to it.

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 38 users / day
  • 158 users / week
  • 432 users / month
  • 2.41K users / 6 months
  • 1 subscriber
  • 1.61K Posts
  • 35.6K Comments
  • Modlog