Comment Comment by wasmperson > Without methods or overloading, you end up in the situation that C and Scheme are inWell in C at least we now have this: #define clear(s) _Generic((s) \ ,struct list: list_clear \ ,struct queue: queue_clear \ ,struct map: map_clear \ )(s) clear(my_map); clear(my_list); clear(my_queue); ...although it turns out the other nice thing about methods is automatic namespacing. parent wasmperson 2 months ago
Well in C at least we now have this:
...although it turns out the other nice thing about methods is automatic namespacing.