|
|
|
|
|
by jkercher
48 days ago
|
|
Yes and no. If you want to make something like a generic dynamic array, you can do it with type erasure (`void*`), but then your code is no longer typesafe. I would find that more fragile. The preprocessor allows you to add constructs that make it behave like any other modern language. As an aside, clangd can dereference a macro in place to make debugging easy. |
|