←back to thread

153 points michaelanckaert | 1 comments | | HN request time: 0s | 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 #
1. enomad ◴[] No.23504649[source]
Who will win:

Obsoleted garbage without code blocks, lambdas, if-expressions, pattern-matching, speed, kids thinking they're metaprogramming/fp gurus.

vs

Garbage dumber than C without generics, error handling, sadistic linter with unused variable-error, kids thinking they're programmers.

PS: of course python's type system better than Go, b/c anything is better than nothing. Moveover, python's type system has nothing common with python: sumtypes is useless without pattern matching and they doesn't play well with classes, scope-leaking variables isn't really static.

I believe there will be modern high-level programming language someday.

RIIR!