Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mlugg
9 months ago
|
parent
|
context
|
favorite
| on:
Zig's (.{}){} Syntax
It's not actually about `*` -- for instance, declaring `const T = *T;` emits an error. The thing that makes this okay is that
field types
(for structs and unions) are evaluated in the "lazy" way you describe.
xg15
9 months ago
[–]
Ah, that makes sense. Thank you!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: