Hacker News new | ask | show | jobs
by danvk 694 days ago
Since function parameters are immutable in Zig, is this a difference that you need to care about?
1 comments

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..