Re:Python’s “type hints” are a bit of a disappointment to me
by eweise on Friday April 22, 2022 @09:54AM
(#31121551)
Why not just use a statically type language? I really don't understand why python is so popular outside of a few specialized areas.
[ Parent
| on HN ]
Re:Python’s “type hints” are a bit of a disappointment to me
by Spivak on Friday April 22, 2022 @10:20AM
(#31121866)
Because ecosystems are what makes people productive and languages are just a means to access them. Python's ecosystem is absolutely massive and high-quality.
Re:Python’s “type hints” are a bit of a disappointment to me
by eweise on Friday April 22, 2022 @11:35AM
(#31122909)
Most popular languages have massive ecosystems. Don't see Python's being a differentiator except for a few specialized areas. In fact, the project I'm on runs on spark wrapped by python libraries, so really its the scala libraries that provide all the heavy lifting.
Re:Python’s “type hints” are a bit of a disappointment to me
by cjalmeida on Friday April 22, 2022 @11:49AM
(#31123137)
We use Spark extensively. We also use @pandas_udf to run some part of our Spark pipeline through some Python-only ML libraries.
Re:Python’s “type hints” are a bit of a disappointment to me
by michaelt on Friday April 22, 2022 @10:21AM
(#31121888)
Ah, but what if I'm a masochist and I want all the verbosity of a statically typed language with none of the benefits?
Re:Python’s “type hints” are a bit of a disappointment to me
by mbrodersen on Sunday April 24, 2022 @08:19PM
(#31149536)
Try F#: Strongly typed but 100% inference of types => best of both worlds.