3 ms·
... And D is great, but it doesn't support concurrency as a primitive judging by it's impressive feature list: http://www.digitalmars.com/d/1.0/comparison.html
by apgwoz 17y ago
... And D is great, but it doesn't support concurrency as a primitive judging by it's impressive feature list: http://www.digitalmars.com/d/1.0/comparison.html http://www.digitalmars.com/d/1.0/comparison.html
The advantage of Go seems to be all of the things you'd expect from C, a lot of what you'd expect from Python and to top it all off, great concurrency primitives.
D on the other hand, is all the greatness of C and C++, some features of dynamic languages, but roll your own concurrency.
And in this day and age, with multi-core being prevalent and 256 core machines "around the corner" we need all the advantages we can get.
Advantage: Go.
- 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.