I think a side-effect SHOW() api may be better than yield/return?
- Can't mix
yield/return syntax (which must be evaluated as a function) with import syntax (which needs a script type=module).
- Is it a bit weird to represent the app's main UI as execution side effect? return felt more natural.
- OTOH, it'll unlock rendering stuff from deep inside functions, forEach loops etc. Currently can
yield from top-level but only console.log works deeper.
- Would need a way to group/collapse to scale (cf. projection boxes). Challenge: it's limiting to make projections an "IDE" feature, can they be implemented in userland?
I think a side-effect SHOW() api may be better than yield/return?
yield/returnsyntax (which must be evaluated as a function) withimportsyntax (which needs a script type=module).yieldfrom top-level but onlyconsole.logworks deeper.