4 ms·
> a lot of what you'd expect from Python please stop repeating this. it's unhelpful at best and to people who know python it's outright misinformative. Go ha
by jbellis 17y ago
> a lot of what you'd expect from Python
please stop repeating this. it's unhelpful at best and to people who know python it's outright misinformative.
Go has GC and a form of duck typing. That's the _end_ of its resemblance to Python.
It doesn't have generators, list comprehensions, or even iterators and foreach. It doesn't have semantic indentation. It doesn't have robust metaprogramming, context handlers, or exceptions. It doesn't have map, reduce, or filter. It doesn't have decorators or operator overloading.
As jerf said yesterday, Go is much closer to "C mixed with Erlang" than "C++ mixed with Python."
- pstuart 17y agoIt also has multiple return values. As agl noted, it has iterators: http://golang.org/doc/go_spec.html#RangeClause http://golang.org/doc/go_spec.html#RangeClause
- jbellis 17y ago> It also has multiple return values. Another point of dissimilarity: python has single return values (which may be tuples). > it has iterators I stand corrected, thanks.