Post AUyMbvhffvBZD41MeW by reynir@social.data.coop
 (DIR) More posts by reynir@social.data.coop
 (DIR) Post #AUyMGdDDEKV5mLcOum by galdor@emacs.ch
       2023-04-24T09:17:30Z
       
       0 likes, 0 repeats
       
       The Golang compiler ignoring invalid format strings even though "go vet" is perfectly able to detect them is infuriating. A compiler not reporting a clearly invalid construct is defective, there is no excuse.And don't get me started on "%v" vs "%w".
       
 (DIR) Post #AUyMQc9O24EtNjaaOG by louis@emacs.ch
       2023-04-24T09:19:45Z
       
       0 likes, 0 repeats
       
       @galdor Yes, the %v vs. %w issues was a strange choice and probably very hard to beginners to understand.I've rarely had a need to use it.I wonder why simple string interpolation was too hard for the Go designers to implement?
       
 (DIR) Post #AUyMbvhffvBZD41MeW by reynir@social.data.coop
       2023-04-24T09:21:45Z
       
       0 likes, 0 repeats
       
       @galdor are format strings always static?
       
 (DIR) Post #AUyMjtmigykZZmBN6e by louis@emacs.ch
       2023-04-24T09:23:13Z
       
       0 likes, 0 repeats
       
       @galdor Reviewing some of your recent posts about Go, you aren't planning to part ways with Go, are you? 🙂
       
 (DIR) Post #AUyMs6dQncl7kMkdnM by galdor@emacs.ch
       2023-04-24T09:24:43Z
       
       0 likes, 0 repeats
       
       @louis Of course not. I have been using it for years, and it works.But part of being experienced with something is that you feel the pain of every little design error.
       
 (DIR) Post #AUyNAOPTS3Oi5SwVTk by veer66@mstdn.io
       2023-04-24T09:27:58Z
       
       0 likes, 0 repeats
       
       @galdor Does go-vet work with Eglot?
       
 (DIR) Post #AUyNMaTARLYOxqU8C8 by galdor@emacs.ch
       2023-04-24T09:30:11Z
       
       0 likes, 0 repeats
       
       @veer66 I have no idea if gopls supports it. And I do not use any kind of continuous analysis tool (flymake & co) because I find them irritating (9 times of out 10, they report errors about work in progress). They also tend to make Emacs laggy.
       
 (DIR) Post #AUyNYfjMhkYMkyp8vg by veer66@mstdn.io
       2023-04-24T09:32:24Z
       
       0 likes, 0 repeats
       
       @galdor When do you run go-lint, go-vet, etc.?
       
 (DIR) Post #AUyOFxMp0bJ3uIv2QK by galdor@emacs.ch
       2023-04-24T09:39:46Z
       
       0 likes, 0 repeats
       
       @veer66 I have a "check" makefile rule I use it locally (actually the default "all" rule runs tests and checks) and in the CI process.