Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
iamyemeth
on July 4, 2023
|
parent
|
context
|
favorite
| on:
A header-only C implementation of C++ <algorithm>
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.
kzrdude
on July 4, 2023
[–]
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:
It would be interesting to see if something similar could be achieved for an algorithm library.