8 ms·
Generics in Go: https://twitter.com/snoyberg/status/882255351382462464 https://twitter.com/snoyberg/status/882255351382462464
by kccqzy 9y ago
Generics in Go: https://twitter.com/snoyberg/status/882255351382462464 https://twitter.com/snoyberg/status/882255351382462464
- kccqzy 9y agoIt really reminds me of early C macros where people use the ## operator to synthesize monomorphized versions.
- fanf2 9y agoThe ## operator is an ANSI C feature, so not really "early". In pre-ANSI preprocessors you had to abuse the lexer to paste tokens, e.g. by relying on // being deleted - nowadays comments are replaced by space.
- stefantalpalaru 9y ago> Generics in Go: https://twitter.com/snoyberg/status/882255351382462464 https://twitter.com/snoyberg/status/882255351382462464 Generics and Go: https://github.com/stefantalpalaru/golib-nim https://github.com/stefantalpalaru/golib-nim
- zyxzkz 9y agoThat's an awesome trick, using angle brackets that aren't angle brackets!