News for hackers. Stuff that matters.
Re:Notes on the Go2 Generics Draft by everybodyknows on Sunday September 02, 2018 @10:51AM (#17897179)
Code generation by means of Go's standard template library has worked nicely for me. Best of all, gdb sees the concrete type, so value inspection stays easy.

Only snag, minor enough, is that emacs auto-indent becomes confused by the double braces, as in "{{.templateVar}}".

Re:Notes on the Go2 Generics Draft by everybodyknows on Sunday September 02, 2018 @11:01AM (#17897212)
I've learned to be wary of the interface type. Although the run-time overhead is negligible anywhere outside tight loops, induced debugger overhead can become a misery.