I’m reading Introduction to Zig and at section 2.2, it says that function parameters are immutable.
I think that is should be constant.
In Zig Language Reference, section Functions / Pass-by-value Parameters, also use immutable. Is this correct?
Thanks
they are const, and that cant be changed. Either make a local var copy, or pass a pointer, depending on your needs.
This is explained here, at the end of the second paragraph, prefaced by its reasoning
Thanks.
But my point was that if:
“This is made possible, in part, by the fact that parameters are immutable.”
Then the text should be fixed.