zlacker

[return to "“Go’s design is a disservice to intelligent programmers”"]
1. barson+Z3[view] [source] 2015-03-25 22:25:44
>>apta+(OP)
His Go is a little disingenuous. This (https://gist.github.com/EricLagerg/105431503d32f18d239b) is almost as short as his D code, and functions the same.
◧◩
2. jff+o4[view] [source] 2015-03-25 22:31:11
>>barson+Z3
It's almost as if, like most people who write articles complaining about Go's lack of "expressiveness" and generics, he took a cursory look at the language, wrote some naive examples that supported his point, and squeezed out a blog post.
◧◩◪
3. waps+le[view] [source] 2015-03-26 00:42:37
>>jff+o4
If the code was equivalent you might have a point. Unfortunately it is not (tokenizing/line scanning vs. copying). One has a shortcut in Go, the other does not.

Would you say that Go is not excessively verbose in non-trivial use cases ? I recently had to sort a struct list in a program. Added lines of code for sorting a single list once : 30. What the ...

◧◩◪◨
4. NateDa+kh[view] [source] 2015-03-26 01:28:37
>>waps+le
For anything larger than a trivial program, go is no more verbose than python. For small programs, there's too much variance to really say what language is less verbose, because you can always hit cases where one language has something in the stdlib and one doesn't.

The only place go is more verbose is sorting, and lack of map, filter, and list comprehension. Most of the latter just means you need a 3 line loop where you have one line in python. But that should not be a great effect on any reasonable size program.

[go to top]