3 ms·
The first python snippet was meant to be identical to the Go one and the Go one is the one from the article. > With Python, you can write the exact same code t
by elgenie 9y ago
The first python snippet was meant to be identical to the Go one and the Go one is the one from the article.
> With Python, you can write the exact same code that asks for the same mental gymnastics.
The second Python snippet would idiomatically be written on one line and that's what the article is railing against for unclear reasons.
The comments would not appear in source code, they're supposed to illustrate the thought process of the reader as they encounter the source code.