I’m relatively new to ObHQ, but really like it. I came here looking to see if (1) destructuring assignment works in general (is js blocks) and (2) if it works for viewof
I’m think this feature request is not as easy as it looks. For the destructured viewof [a,b,c], would you want them to be synchronized or not? Would it be like running 3 separate cells/code blocks? Or would you want them all be linked?
Conceptually, what would be the Inspector output (i.e. rendered cell output) for viewof [a, b, c]? And would this result in six internal variables (“viewof a”, “a”, “viewof b”, “b”, “viewof c”, “c”)? If not, how would you reference the viewof cell?
I’m so new that I’m not clear on internals and the reactivity. But here’s my guess:
you can reference a just as normal. same with b and c
Yes, there would be 6 internal variables, (“viewof a”, “a”, “viewof b”, “b”, “viewof c”, “c”)
Is there also something associated with the “anonymous” array viewof [a,b,c]?
The question about the “reactivity” is whether a, b, and c are linked and dataflow. If b is updated, does that dispatch an event (sorry if my terminology is off) for all the dataflow dependents on a and c too?