Hacker News new | past | comments | ask | show | jobs | submit login

I meant more from the perspective that stb_ds achieves type safe generics in C using macros but without using defines.

It would be interesting to see if something similar could be achieved for an algorithm library.




It would be interesting but I prefer the approach in this post - because the templating macros are isolated out into a "module" and it does not great spread across the user code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: