DEV Community

Discussion on: How can I learn to like Golang? (and use it a lot)

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Why would you want to nil a variable? Use the zero value... That's what it's for.

Of course, so that's how it is designed, right?

I still dislike GoDoc style and integration with VSCode is not as powerful and color as JSDoc or JavaDoc. Even RustDoc's /// feels better.

GoDoc hates multiline commented markdown, to be exact.

If you view this in VSCode, it will be broken -- towardsdatascience.com/setting-up-...

Collapse
 
wagslane profile image
Lane Wagner

I mean, yeah Godoc doesn't support markdown, but I argue that's a good thing. Comments should be brief and to the point, not formatted novels

Thread Thread
 
pclundaahl profile image
Patrick Charles-Lundaahl

+1. If your code needs multi-paragraph comments, I think your code probably needs to be clarified.