You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
progval
changed the title
Setters' semantic is illogical: they don't get the value
Setters' semantics are illogical: they don't get the value
Jul 4, 2014
When using a setter (eg.
{[] 'foo': {#getter undefined, #setter (func (a, b) { b })}}['foo' = 'bar']
),b
is not'bar'
as expected, but is an object.The setter has no way to know what the “assigned” value is.
Indeed, looking at this code: https://github.com/brownplt/LambdaS5/blob/master/src/ljs/ljs_eval.ml#L272, the value to be “assigned” is stored in
v_value
, but this variable is only used forData
fields, and never forAccessor
ones…The text was updated successfully, but these errors were encountered: