grain icon indicating copy to clipboard operation
grain copied to clipboard

allow parameters to be marked as mutable

Open spotandjake opened this issue 7 months ago • 0 comments

allow function paramters to be marked as mutable syntax example being

let t = (mut str) => {
  str += 1
  str
}

The semantics of this would be equivlant to

let t = (str) => {
  let mut str = str
  str += 1
  str
}

spotandjake avatar Jan 03 '24 20:01 spotandjake