Comment by gethly
1 day ago
He is referring to
&element[T]{val: v}
the & is a pointer, which is common across most languages, but the [T] is a dynamic type T. Otherwise it would be just
&element{val: v}
He says that element[T] is a clean/simple implementation of generics.
No comments yet
Contribute on Hacker News ↗