Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
xg15
· 2y ago · 0 comments
Ah, so the * type function can "lazily evaluate" its argument?
Comments
[–]
mlugg
2y ago
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
OP
2y ago
Ah, that makes sense. Thank you!