3 ms·
I usually turn to C++ when I need such things. Hopefully I remember this exists next time.
by Neywiny 2y ago
I usually turn to C++ when I need such things. Hopefully I remember this exists next time.
- nextaccountic 2y agoDon't use this, it's worse than useless
- self_awareness 2y agoI did a quick search on GitHub for today's code that uses it, and actually found out that people do use it today, but generally I agree, this is a legacy API, legacy implementation, and the best thing we can do for it is to forget about it. The `hcreate(3)` API is interesting only because it has a very limited use, yet it still exists in libc. So it's kind of interesting in a circus way; we want to see it, but then we want to get out of it, and we want to continue our rational lives without clowns and bearded ladies. There are probably many thirdparty hashtables for C which work much better than this.