Email or username:

Password:

Forgot your password?
9 comments
Luna Ielenia :nc_t:​:nc_ace:​:nc_ambi: (Luna)

@Elizafox@social.treehouse.systems
A reddit thread.

pftbest - 6 years ago
can you please explain this go syntax to me?
type ImmutableTreeList<ElementT> struct {
I thought go doesn't have generics.

reply from Uncaffeinated, the original poster, 6 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.

Reply to that reply from pcopley, 6 years ago
(quoted} they're characters from the Canadian Aboriginal Syllabics block
Oh my god

@Elizafox@social.treehouse.systems
A reddit thread.

pftbest - 6 years ago
can you please explain this go syntax to me?
type ImmutableTreeList<ElementT> struct {
I thought go doesn't have generics.

reply from Uncaffeinated, the original poster, 6 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...

syn

@Elizafox given enough time any language without genetics becomes c

Go Up