top | item 46296578

(no title)

sails01 | 2 months ago

Is there any study that shows that typing in Python improves code quality and reduce runtime issues?

discuss

order

kurtis_reed|2 months ago

Newsflash: not everything good has a study about it

wiseowise|2 months ago

> Ughm, is there any study that shows that guardrails and lights on bridges reduce fatalities?

> Akshually, are there any studies showing that cars riding 30 km/h kill less people than cars that ride 80 km/h?

dllthomas|2 months ago

I think there are both of those.

bmitc|2 months ago

That's equivalent to asking if there are benefits of static typing.

pansa2|2 months ago

Specifically, it's like asking if there are any studies that demonstrate benefits of static typing. Are there?

sails01|2 months ago

Not quite, static typing is used at runtime, python type annotations are not

hexo|2 months ago

Well, it's just a documentation suggestion for user. Having for me about same value as if it was written in pydoc. I'd really love to see such study as well

sails01|2 months ago

Agree, we already had a solution documenting types in docstring.

In my case they just add noise when reading code and make it more difficult to review

solarkraft|2 months ago

it has been consensus for decades at this point.