Hacker News new | ask | show | jobs
by ptman 3225 days ago
What if I want both TreeNode<float64> and TreeNode<rune>?
1 comments

Easy. You copy the original file twice and put them in two different sub directories, say treef64 and treerune.
Not copy – symbolic link. Then there’s just the one source file.

Not that I would want this in my project. But as a hack, it’s even better than it first sounds.