imagine that TYPE can be replaced by anything, just like C++ <T>
hkNode_TYPE *hkList_TYPE_remove(hkList_TYPE *list, TYPE item) {
if (list->length == 0) {
return NULL;
}
hkNode_TYPE *result = NULL;
hkNode_TYPE *iter = list->head;
hkNode_TYPE *prev = NULL;
while (iter) {
if (iter->data == item) { // <- this line
...
this works fine for primitive types but once you have a composite type...
so since in C and Zig, there is no operator overloading, how would the equality operator work on non-primitive structure/composite types?
how would this be implemented in Zig?