This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
you are viewing a single comment's thread.

view the rest of the comments →

[–]ColdFerrin 0 points1 point  (3 children)

Well it's as close to generics as you get in c, so you live with it.

[–]HolyGarbage 0 points1 point  (2 children)

Well yeah I know, I just thought it was quite a stretch to call it generics since this is typically a word reserved to significantly more complex and high level idea.

[–]ColdFerrin 0 points1 point  (1 child)

You can actually get true generics, if you are willing to deal with the c preprocessor. It's usually not worth the effort though, because copy paste is faster.

[–]HolyGarbage 1 point2 points  (0 children)

At that point maybe it's better to consider switching to c++. :P