Remix.run Logo
stared 5 days ago

Not sure if "Python 4.0" is the best comparison.

Go is compiled, Python - interpreted. Go focuses on concurrency, Python on making it easy to do things with code.

Many things that are a one-liner in Python (but itself or with a library), in Go take quite a lot of lines or boilerplate. For example, there is no built-in string templates in Go.

9rx 4 days ago | parent [-]

> Not sure if "Python 4.0" is the best comparison.

Or is it Python that is not best compared to "Python 4.0"? Python doesn't live up to the guiding principles of Python, such as preferring only one obvious way to do something. Go is, in many ways, more Python than Python.

> Many things that are a one-liner in Python

Case in point. Many of those one-liners are just as obviously expressed as multi-liners (e.g. list comprehension vs. traditional 'for' loop).

> no built-in string templates in Go.

Another good example. There is no special syntax, but the standard library provides. Special syntax would give two obvious ways to do it.