4 ms·
your example is not valid Go code: syntax error: unexpected ], expected type argument list and its also just poor style in general. "any" is already a pointer
by 38 3y ago
your example is not valid Go code:
syntax error: unexpected ], expected type argument list
and its also just poor style in general. "any" is already a pointer, so you would rarely design a pointer to any. example:
https://godocs.io/encoding/json#Marshal https://godocs.io/encoding/json#Marshal
- earthboundkid 3y agoIt’s just pseudo code, relax. You’re not a compiler. You know what they meant.
- 38 3y ago[flagged]
- chc 3y agoWhat of it, though? I noticed, but didn't think much of it because pseudocode doesn't need to be valid and usually isn't. What is the problem with these syntax errors that you are trying to address by calling attention to them?
- MarkMarine 3y agoLighten up. Someone answered a question in a concise manner with some pseudo code, probably in a language they haven’t context switched to in a couple weeks. The pedantry you’re displaying doesn’t help the conversation. Do you have substantive insight to provide about how the go GC works with Java’s different JVM improvements? If not, you can just rate the post up or down
- 38 3y ago[flagged]
- mc10 3y agoThis comment (and the subsequent follow-up reply) violates the HN comment guidelines: - Be kind. Don't be snarky. Converse curiously; don't cross-examine. Edit out swipes. - When disagreeing, please reply to the argument instead of calling names. "That is idiotic; 1 + 1 is 2, not 3" can be shortened to "1 + 1 is 2, not 3."
- 38 3y ago[flagged]