Jarten @jarten.dev · Jan 19

I like monomorphic generics in Rust, so it's disappointing to see that they're not in C, though its kind of understandable. but what do you mean that *this* is the best type-safe alternative 😭 there's so much pre-processor directives, if I ever had to manage this codebase istg id rather die

1 likes 1 replies

?

Replies

Jarten · Jan 19

i dont mean to put the original article on blast lol, its a decent enough solution if you absolutely can't compromise on performance. (linked below) but holy shit this workaround is awful to read i dont want to hear ANYONE complain about syntax ever again raphgl.github.io/blog/generic...