(no title)
eterps | 5 months ago
I am curious about your thoughts on var parameters (i.e. mutable references), as in:
proc increment(var x: int)
begin
x := x + 1
end
var i: int
begin
i := 10
increment(i) // i is now 11
end
gnatmud8|5 months ago
eterps|5 months ago
Rust also offers it, but you need to specify it on the call side as well.