Re:Nine years of Go
by germanyhater on Saturday November 10, 2018 @02:47PM
(#18423119)
I prefer to use .NET Core / C#. It is very fast, async, cross-platform, open source and unlike GO, it is a high level programming language. One disadvantage is that compilation time is not as fast as with GO, but it was improved over the last years.
[ Parent
| on HN ]
C#'s async/await sucks compared to Go's approach.
If you want Go's approach in C# use Tasks and Dataflows with ConcurrentQueues, not async/await.
Re:Nine years of Go
by AsyncAwait on Sunday November 11, 2018 @10:47AM
(#18426909)
And that it's not a compile to static binary by default.
Re:Nine years of Go
by PunchTornado on Saturday November 10, 2018 @03:39PM
(#18423371)
> unlike GO, it is a high level programming language
what is high and low level depends very much on the context, but I don't see GO to be lower level than C#...
Lack of support for generics, enumerations, dynamic, FFI marshalling, expression trees, LINQ, exceptions, match expressions, ....
Re:Nine years of Go
by PunchTornado on Saturday November 10, 2018 @06:11PM
(#18424027)
some of these are not present in other high level languages like PHP, javascript and you don't call them lower level...
Re:Nine years of Go
by tigershark on Saturday November 10, 2018 @06:37PM
(#18424117)
PHP and JavaScript are not statically typed.
What would be the use of generics in there?
Obviously for the same reason you don’t need the dynamic keyword.
As for LINQ at least in JavaScript you have it, either integrated in the language with map, filter, reduce or using some library like lodash or Ramda.
You don’t have expression trees but you don’t really need them given the highly dynamic nature of the language, although not at the same level as ruby if I remember correctly.
JavaScript has exceptions, so here I’m really not sure what you are speaking about.
For FFI marshalling (that for sure I would not call high level feature) there is webassembly.
Match expressions are present in JavaScript and obviously you can’t have exhaustive pattern matching like in typescript because of the lack of types. Even in that way it’s pretty comparable to c# switch case.
So to me it seems that at least JavaScript has all the features listed in the gp, why you are convinced of the contrary?
since it has no generics, it has less expressive power
Re:Nine years of Go
by AlexCoventry on Saturday November 10, 2018 @08:35PM
(#18424547)
Curious about the downvotes on this. Seems accurate.