Hacker News new | ask | show | jobs
by the_mitsuhiko 424 days ago
> How do I safely write a function that takes a linked list as a parameter?

Zig does not have a lot of generic code. You would pass the user directly and then walk the list or you use comptime. The real answer is that "you don't write code like that in Zig".