Hacker News new | ask | show | jobs
by laverick 3102 days ago
https://stackoverflow.com/a/22645853
1 comments

I think I knew that templates were Turing complete, but so are java generics, it's just that to get dependent types in generics you have to reinvent the integers within the generic system. Not so for templates, which I didn't realize. That's pretty nifty!