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 code won't work because accessing the method's function is not the same as accessing the method (extra checks are needed);
the decorator (re)sets an object's attribute. If we only need to set a value right here, we should not touch the object itself; a proxy/wrapper should be applied instead.
Let's say we want to add a command to the parser with slightly different configuration:
This is wrong because:
For example (syntax to be improved):
The
named
decorator may be used for this purpose, too; it should be less transparent in that case.The text was updated successfully, but these errors were encountered: