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
abstractclassWriteInterceptor {
set(target, value, Member member);
}
abstractclassInvokeInterceptor {
invoke(target, List positionalArguments, Map<Symbol,dynamic> namedArguments,
Member member);
}
I would like to propose that we change member to always be the 2nd argument:
abstractclassWriteInterceptor {
set(target, Member member, value);
}
abstractclassInvokeInterceptor {
invoke(target, Member member, List positionalArguments,
Map<Symbol,dynamic> namedArguments);
}
This is more intuitive, because it looks more like the calls its actually intercepting. For example when assigning a property:
foo.bar ='baz';
The set method would be called with foo, a member whose name is #bar, and the value 'baz', in that order. With the current semantics 'baz' would come before the member with name #bar, which isn't as intuitive.
The text was updated successfully, but these errors were encountered:
Currently the proposal is the following:
I would like to propose that we change
member
to always be the 2nd argument:This is more intuitive, because it looks more like the calls its actually intercepting. For example when assigning a property:
The set method would be called with
foo
, a member whose name is#bar
, and the value'baz'
, in that order. With the current semantics'baz'
would come before the member with name#bar
, which isn't as intuitive.The text was updated successfully, but these errors were encountered: