Open rlwhitcomb opened 8 months ago
Okay, apart from the difficulties I'm having just implementing this, there is at least one (likely) insoluble problem: when an empty set/map is converted to one or the other when the first element is added. Even in the best case when I could get the real object and make a new one, the original reference (in the symbol table of one of the callers) is never referenced anywhere, so I could never update the original reference with the new object, unless I could pass in the original LValueContext of it ... (good luck with that). But, then again, maybe this is the crux of the whole situation: passing a valid LValueContext around as the "value" of the parameter. I don't seem to be "getting" it yet ....
Questions:
Say I want to pass in a list/array or map/object to be modified inside a function. Currently that doesn't work:
Suggest allowing
var
orconst
(default) as a modifier in front of the name, as in:where the default would be
const
(as now), but either one is allowed in order to be explicit.Of course, this would imply that the actual value for a non-const parameter could not be a constant value...