Hacker News new | past | comments | ask | show | jobs | submit login

Half the world wouldn't be using python if it wasn't for the typing module. The other half is probably waiting for speed improvements.



>Half the world wouldn't be using python if it wasn't for the typing module

Hardly.

The majority of Python users don't use the typing module.


Oh you went for number of programmers, that isn't what I meant (obviously). Think influence. Think dropbox, uber, amazon. And think stripe trying to add type annotations to ruby. This is what I meant.


Well, Dropbox, Uber and Amazon used Python way before the typing module... and many others, including Google.

They might want it in (and helped add it), but it's not what made them use Python.


Okay, I will spell it out: large companies require robust code and typing provides it.


Okay, my $0.02 cents: this is mostly a periodic trend. Large companies had static codebases and switched many codebases to dynamic types circa 2000-2010.

And we've even been to the same circle before: a lot of programming the 60s and 70s was untyped, then they switched to typed C++, Delphi and then Java.


> that isn’t what I meant (obviously)

It was not at all obvious from your post.


Just so I understand: “half the world” is now a measure of influence, not people? And this is supposed to be obvious?


Being very generous to /u/nurettin, I think maybe they mean that the use of said module by a particularly influential group of developers has the byproduct of broader Python use by folks who might not use said module.

I see some mild sense in this argument given how TypeScript has taken off and dispersed into audiences who wouldn't ordinarily be interested in such a thing. I'm not sure it works in the Python world though, since Python's latter day upward trajectory is probably more oriented around heavy use in education, science, ML, PyTorch, et al?


There was nothing stopping them from adding the typing module and syntax to Python 2. The issue was more or less the forced painful backwards compatibility break; in hindsight, that could have been avoided while giving us still a lot of new goodies.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: