BosqueLanguage / BosqueCore

Other
145 stars 5 forks source link

Value update operations #37

Open BosqueLanguage opened 1 year ago

BosqueLanguage commented 1 year ago

Want to add update operation for tuples/records/ootypes. Should also include "in-place" support like:

var y = {f=1i, g=2i};
y.{g=5i};
marron-at-work commented 1 year ago

Also for ref methods we may want to have a special assignment operation:

let x = ...;
this<-x;

Where x is the same type as this. Will be useful for computing a new value functionally and then assigning it back (without needed to do an explicit assign of every field).