JoshOrndorff / librho

A Standard Library for Rholang
Apache License 2.0
12 stars 6 forks source link

Drafted dispatching converter #13

Closed JoshOrndorff closed 5 years ago

JoshOrndorff commented 5 years ago

Convert between two common idioms for dispatching methods in rholang.

// Idiom 1
myInstance!("method", arg1, arg2)

// Idiom 2
(*myInstance, "method")!(arg1, arg2)
JoshOrndorff commented 5 years ago

@dckc This code is now working and converts between the tho method dispatching paradigms. Might be interesting to test it with you js proxy code.