Post #2315798
2026-05-09 14:33 UTC
@jjacobsson@mastodon.gamedev.place
#alttext
pftbest
197 points 9 years ago
can you please explain this go syntax to me?
type ImmutableTreeList struct {
I thought go doesn't have generics.
Uncaffeinated
488 points 9 years ago
It doesn't. That's just a "template" file, which I use search and replace in order to generate the three monomorphized go files.
If you look closely, those aren't angle brackets, they're characters from the Canadian Aboriginal Syllabics block, which are allowed in Go identifiers. From Go's perspective, that's just one long identifier.
pcopley
385 points 9 years ago
"they're characters from the Canadian Aboriginal Syllabics block."
Oh my god
Replies (0)
No replies.