Go generate: A proposal for a Go preprocessor | Hacker News

Hacker News new | comments | show | ask | jobs | submit login Go generate: A proposal for a Go preprocessor ( docs.google.com ) 76 points by cpeterso 1172 days ago | hide | past | web | favorite | 71 comments cageface 1172 days ago Motivating examples include: macros: generating customized implementations given generalized packages, such as sort.Ints from ints If this is seriously their proposed solution to the lack of generics then my estimation of Go just dropped even further. MichaelSalib 1172 days ago It is a bit astonishing what lengths the go community is willing to, er, go, in order to avoid compile-time code execution (the basis of lisp macros) or generics. I understand that neither of these ideas were invented at Bell Labs during the 1970s, but at some point, can't we just put aside the not invented here syndrome? Could we all ju...

Linked on 2017-12-12 20:56:49 | Similar Links