|
|
|
|
|
by riobard
3225 days ago
|
|
I'm wondering if we could abuse type alias to fake generics somehow? E.g. // file tree.go
type T = YourConcreteType
type TreeNode struct {
Value T
}
// rest of tree implementation
Then you can just copy the file and replace YourConcreteType at the top and voila!Seems simpler to use than the unicode hack here https://www.reddit.com/r/rust/comments/5penft/parallelizing_... |
|