←back to thread

Go is still not good

(blog.habets.se)
644 points ustad | 1 comments | | HN request time: 0s | source
Show context
reactordev ◴[] No.44986598[source]
There were points in this article that made me feel like Rob Schneider in Demolition Man saying "He doesn't know about the three sea shells!" but there were a couple points made that were valid.

the nil issue. An interface, when assigned a struct, is no longer nil even if that struct is nil - probably a mistake. Valid point.

append in a func. Definitely one of the biggest issues is that slices are by ref. They did this to save memory and speed but the append issue becomes a monster unless abstracted. Valid point.

err in scope for the whole func. You defined it, of course it is. Better to reuse a generic var than constantly instantiate another. The lack of try catch forces you to think. Not a valid point.

defer. What is the difference between a scope block and a function block? I'll wait.

replies(1): >>44989422 #
1. moogly ◴[] No.44989422[source]
Would have been more interested in a rebuttal of the claims you consider invalid instead of an overly verbose +1 that added nothing.