3 ms·
The API is definitely more cumbersome than I would prefer. I really like this idea: > bob.send(obj) However, I don't think object creation and sending will e
by nbadg 10y ago
The API is definitely more cumbersome than I would prefer.
I really like this idea:
> bob.send(obj)
However, I don't think object creation and sending will ever be combined into the same operation, because:
+ objects don't need to be shared (imagine using an object to track application settings; you don't want to send that to Bob but you want it to persist across sessions)
+ objects can be shared with more than just Bob (and we'd like it to be the same object!)
So hopefully, in the future the API will look more like:
> obj = hgx.JsonProxy('hello world')
> bob.share(obj)
Unfortunately because of the async/await syntax, this gets a little complicated to implement. But it's definitely on the horizon.
- StavrosK 10y agoOh, I see, so not everything is 1:1. That makes sense then, thanks.