Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
danvk
· 2y ago · 0 comments
Since function parameters are immutable in Zig, is this a difference that you need to care about?
Comments
[–]
renox
2y ago
The parameter is immutable so if you pass a pointer, the pointer is immutable, but the pointed value isn't.. If the pointer alias another 'immutable' parameter, this parameter may not be immutable anymore..