Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kccqzy
· 9y ago · 0 comments
Generics in Go:
https://twitter.com/snoyberg/status/882255351382462464
Comments
[–]
zyxzkz
9y ago
That's an awesome trick, using angle brackets that aren't angle brackets!
[–]
kccqzy
OP
9y ago
It really reminds me of early C macros where people use the ## operator to synthesize monomorphized versions.
[–]
fanf2
9y ago
The ## 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.