Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

With a non-intrusive linked list type, can't you define the intrusive version as `Node<void>`?


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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: