Hacker News new | ask | show | jobs
by jfktrey 3004 days ago
What do you mean? Go has generics. Kind of.

https://www.reddit.com/r/rust/comments/5penft/parallelizing_...

2 comments

Wait, is that string using inuktitut characters as fake angle-brackets? That is monstrously evil.
Yup, that's even evil enough to quote in full:

  [–] pftbest 114 points 1 year ago 
  can you please explain this go syntax to me?
  type ImmutableTreeListᐸElementTᐳ struct {
  I thought go doesn't have generics.

  [–]Uncaffeinated[S] 239 points 1 year 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.
https://www.reddit.com/r/rust/comments/5penft/parallelizing_...
Wow, that's the best/worst thing I've read in a long time. Imagine you'd have to maintain code using those without knowing it..