News for hackers. Stuff that matters.
Re:Zig's new LinkedList API (it's time to learn fieldParentPtr) by NobodyNada on Monday April 14, 2025 @12:07PM (#43682838)
With a non-intrusive linked list type, can't you define the intrusive version as `Node<void>`?
Re:Zig's new LinkedList API (it's time to learn fieldParentPtr) by suspended_state on Monday April 21, 2025 @05:59AM (#43750125)
If that is possible in Zig to have a "void" struct field, then you are correct, but wouldn't this block a third-party user from defining a struct field named data later?