Skip to content

Turn _MultiCall into a function #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
goodboy opened this issue Sep 7, 2017 · 4 comments
Closed

Turn _MultiCall into a function #84

goodboy opened this issue Sep 7, 2017 · 4 comments

Comments

@goodboy
Copy link
Contributor

goodboy commented Sep 7, 2017

Now that #23 has landed it seems fit that we evaluate the _MultiCall type.

Afaict this class contains a single method execute() other then __init__ (and __repr__ but who uses it?) and that method was only necessary for the original recursive implementation.

I'm wondering can we simplify the whole thing into a simple function?

Reasons for:

@RonnyPfannschmidt
Copy link
Member

well - multicall instances are used in the sense tat we currently pick multicall vs legacy multicall

if we alter the hook calller invocation pattern then we can surely turn the actual invocation into only a function call

@nicoddemus
Copy link
Member

I'm 👍 on the idea as well.

@goodboy
Copy link
Contributor Author

goodboy commented Sep 7, 2017

@nicoddemus right so this will be most easily pushed through once #59 is fully in which I'd expect won't be until the next minor or even major release.

if we alter the hook calller invocation pattern

We can also just have the _LegacyMultiCall calls to __init__ and execute wrapped inside a function which is mapped in the legacy case yah? The new function approach will still need all the arguments for both calls either way.

@RonnyPfannschmidt
Copy link
Member

@tgoodlet instantiate and initial execute can be wrapped into a function in both cases i think

@goodboy goodboy self-assigned this Sep 7, 2017
@goodboy goodboy changed the title Turn _MultiCall into a function? Turn _MultiCall into a function Sep 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants