Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
NobodyNada
10 months ago
|
parent
|
context
|
favorite
| on:
Zig's new LinkedList API (it's time to learn field...
With a non-intrusive linked list type, can't you define the intrusive version as `Node<void>`?
suspended_state
10 months ago
|
next
[–]
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: