←back to thread

153 points michaelanckaert | 2 comments | | HN request time: 0.498s | source
Show context
RcouF1uZ4gsC ◴[] No.23485685[source]
> My work on SourceHut has, on the whole, really soured my opinion of Python as a serious language for large projects.

A lot of the things thank make Python great for small projects, really bite you on a large or long-lived project. For me, the two biggest are lack of types and indentation for scoping. It is really easy to mess up white space during an edit or refactor. In many languages you would just reformat. In python, you have to be careful that a statement suddenly did not end up outside or inside an if block.

replies(1): >>23485942 #
frou_dh ◴[] No.23485942[source]
Python has a better static typesystem than Go does:

https://mypy.readthedocs.io/en/stable/kinds_of_types.html#un...

https://mypy.readthedocs.io/en/stable/kinds_of_types.html#op...

https://mypy.readthedocs.io/en/stable/generics.html

https://mypy.readthedocs.io/en/stable/protocols.html

replies(2): >>23486056 #>>23504649 #
ianamartin ◴[] No.23486056[source]
Even though I like Python a lot, I clicked on a reply to this comment because I was absolutely certain I was going to have to disagree with you. That just didn't seem possible. But . . . I was wrong. That third link with generics makes me cry when I think about the go code I've written.
replies(2): >>23486107 #>>23487238 #
1. searchableguy ◴[] No.23486107[source]
Are those tears result of overflowing with joy or sadness?
replies(1): >>23486117 #
2. ianamartin ◴[] No.23486117[source]
Can it be both?